PHP require_once code is not working any more

Before updating to Dreamweaver CC14 (from CS5.5), my php "require_once" files were working fine. When I imported the "ste" file into CC2014, and upload the files as usual, I get this error:
Warning: require_once(/var/chroot/home/content/d/m/w/dmwebcreation/html/includes/_footer.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/d/m/w/dmwebcreation/html/dmweb-2/index.php on line 15
Fatal error: require_once() [function.require]: Failed opening required '/var/chroot/home/content/d/m/w/dmwebcreation/html/includes/_footer.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/d/m/w/dmwebcreation/html/dmweb-2/index.php on line 15
This is the php code that I am using in order to have these files added to any page and any directory.
<?php
   $path = $_SERVER['DOCUMENT_ROOT'];
   $path .= "/includes/_footer.php";
   require_once($path);
?>
This is the location for my test file:    http://dm-webcreation.com/dmweb-2/index.php
I have Dreamweaver CC 2014 set up as "Links Relative to SITE ROOT" ... so that these files brought in from any files in any direction.
Has something changed in CC 2014?

I am using "Links Relative to Site Root" because of my "includes" files which I need to have relative to the site root so that it will not matter where I place the main files, I can still use the "includes" files as "templates" (for my menu, header, footer, copyright line, etc.) inside any file in any directory. The idea for using this "links relative to site root" coding came from: http://css-tricks.com/php-include-from-root/
You will see that it is not just the php include file that is giving me problem, but even the image I placed on the page will not show up online.
Interestingly, this webpage shows up without problem on my localhost testing server, but (as of this past week) it does not show up properly online.
I have a virtual host set up as a localhost testing server in the C:\xampp\apache\conf\extra\httpd-vhosts.conf  file like this:
The setup uses http://site1 as my local host like this:
     <VirtualHost *:80>
       DocumentRoot "c:/users/...../documents/@Websites/dm-webcreation"
       ServerName site1
     </VirtualHost>
I manage several websites in the same hosting online, so I use "site1" as one website, and "site2" as another website for the local host testing server. In my remote hosting, I host all each website in a different directory of my main hosting (dm-webcreation.com) and point each website's domain name to that directory.
And this works correctly on my localhost for the website. Both the image file and the php include file show up perfectly.
My remote server is set up like this Dreamweaver CC2014:
     FTP Address: dm-webcreation.com
      Root Directory:  /dmweb-2/
     Web URL: www.dm-webcreation.com
My testing server is set up like this in Dreamweaver CC2014 (this matches my VirtualHost set up):
     Server Folder: C:\Users\.....\documents\@Websites\dm-webcreation\
     Web URL: http://site1/
I do receive this Dreamweaver error when saving the testing server set up:
The URL prefex "/" of your testing server does not match the URL prefix "/dmweb-2/" of your site. Since you are using site relative links it is possible that your links will display  incorrectly at runtime...
The strange thing is that I have three websites that were all set up the same way and they all worked fine until I imported them into this new version of Dreamweaver CC2014.
That's why I am so puzzled. I have created this simple page (www.z.dm-webcreation.com/dmweb-2) just to try to discover what has changed.
The other websites have the exact same "link relative to site root" in them, but they work without any problem. (www.airpyramid.com , www.leofenton.com ,  www.dev.casacristianavida.com ).
Either something in my hosting has changed or Dreamweaver's Site Manager works differently...
I AM REALLY PUZZLED!!

Similar Messages

  • My Home Sharing does not work any more after latest iTunes update

    After iTunes update to 11.1.3 my Home Sharing does not work any more!
    It worked just fine for several years...
    I tryed to do everything I could find on Apple support... NOTHING works.
    Most of Apple so called updates turn out real crap...
    I am wondering whats happening to Apple?...

    Hello igor_rena,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Best of luck,
    Mario

  • Adobe Acrobat Pro Licence is not working any more

    Hi, Adobe Acrobat Pro is not opening any more and giving the error "Licence is not working any more". I have a CS4 on Mac OS X 10.5.8. I tried all the suggestions in the Help Forum. What remains is to install CS4 again. Is there any risk doing that? Or is there any other option. Best, Felix

    Hi xilef79,
    Have you tried all the suggestions in this Help document: http://helpx.adobe.com/creative-suite/kb/error-licensing-stopped-windows.html
    Please let us know how it goes.
    Best,
    Sara

  • How can I deactivate photoshop on a computer that is not working any more?

    How can I deactivate photoshop on a computer that is not working any more?

    Contact Adobe customer service:
    http://helpx.adobe.com/contact/
    Ken

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • DVD-Drive is not working any more

    My DVD-Drive is not working any more. When I enter a CD/DVD it makes a strangs bruummm for 2 or 3 times ant then ejects the CD/DVD. What can I do. I think the Drive is broken.

    Here are some tips for trouble shooting slot load
    http://docs.info.apple.com/article.html?artnum=88275-en
    Mort

  • Search in saved preview .pdf files not working any more

    When I download a .pdf file from the internet and open it in preview, the search command works ok. When this same file is saved to disk and opened again, search is not working any more. Is this a bug, or my fault. Regards Rolf

    Hi,
    I hope this helps...
    A while back we have more than one browser running on our PC (IE, Firefox, Chrome) and we messed by how Acrobat views documents over the web.
    I think that this has some relevance here, as around this time LC also started falling over previewing forms.
    Now if we open LC and Acrobat is not running, the "Preview PDF" is not present or accessible. So now we fire up Acrobat before we open a form in LC Designer and the preview tab is there and functioning.
    Not much of a workaround; but I am hoping that someone will have a better one!!!
    Good luck,
    Niall

  • HT4623 I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....

    I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....Any advice appreciated.

    give us more to work with in terms of info then "basically does not work any more"
    it can be from it's on fire to the a key on the onscreen keyboard don't respond

  • W510 - nVidia 880M - GPU throttle not working any more

    Hi everybody,
    my W510 (2 month old) used to throttle down the GPU from maximum performance (550/790 MHz GPU and Memory) to lower values (135 Mhz or something) when the GPU was nearly in idle mode. I don't know when it sopped working, but today I realized the GPU staying in high performance mode all the time.
    I tried the things below but none worked so far:
    - changing through the different power schemes
    - updating the video driver with Lenovo update tool
    - installing the video driver from nVidia (using clear install option)
    It has to be a software issue since I can manually change the clock using a tool called Powermizer Manager. But the "Auto" mode is not working any more. I watched the GPU clock with GPU-z.
    Any ideas where I might have a look? I'm currently running the most recent Lenovo video driver.
    Thanks,
    Andy.

    This is the response from AirDisplay ==>>>
    Hello,
    My apologies for this issue. It's a bug we are aware of. It stems from an issue with OS X. Certain Macs that have a third party video driver installed will exhibit this issue. So, it's not just Air Display that causes this problem but other apps like Display Link, AirParrot, etc. will also have this issue. Apple has contacted us regarding the problem and they're looking into it. It's not actually something we or those other third party developers can fix. Apple has to address the issue with OS X. Hopefully they'll fix it soon.
    Elliot
    Customer Support
    Avatron Software, Inc.
    [email protected]

  • HT1349 my iphone4s power butter do not work any more . can i change a new one in att store

    my iphone4s power butter do not work any more . can i change a new one in att store
    it gives me troubles

    outianleiz,
    Mine quits working every now and then.
    Most of the time I can fix it by doing a power button, home button reset. When that doesn't work plugging it into my computer does.
    What have you tried?
    Also I believe it is a software problem not hardware. So I would suggest not replacing it until you can get your hands on the "iOS 5.1" update. That is what I am waiting on before I calling Apple and/or ATT and raising  the roof with someone over this issue.

  • One speaker of my i phone 4s does not working any more and my phone still new ?

    One speaker of my i phone 4s does not working any more ? and it s still new !

    There is only one speaker, other side is microphone. You
    may wish to download and become familiar with the user guide.
    It is a link in Safari on your iPhone, you can download the user
    manual after you download iBooks app, or you can find it here:
    http://support.apple.com/manuals/#iphone

  • Since I installed lion, my SxS Card reader is not working any more. Some advise?

    since I installed lion, my SxS Card reader is not working any more. Some advise?

    Try resetting the PRAM https://support.apple.com/kb/HT1379

  • CTRL+P requires manual tab focus when printing a PDF within FF4. This worked fine in FF3. Why does it not work any more? Thanks!

    Hi,
    CTRL+P requires manual tab focus when printing a PDF within FF4. This worked fine in FF3 - i.e, you could just select the tab. Why does it not work any more? Thanks!

    Hi
    https://discussions.apple.com/thread/4325038?tstart=0
    CCT

  • Since IOS7,The synchronization itunes does not work any more

    since IOS7, the synchronization itunes does not work any more....

    Hi martinafromlimassol,
    Welcome to the Apple Support Communities!
    I understand that you iPhone has been dropped and the display no longer functions. In this situation, it may be necessary to have your iPhone 5 evaluated for repair. Please use the attached link for information on the process of having your iPhone evaluated. 
    iPhone Repair and Service - Apple Support
    Best regards,
    Joe

  • I bought a EarPods October last year in USA, the day before yesterday the remoter can not work any more, it means by the EarPod still can lisence music but can not adjust the volume and answer the phone, can I get a new one or what can I get?

    I bought a EarPods October last year in the USA, the day before yesterday the remoter can not work any more, it means by the EarPod still can listen music but can not adjust the volume and answer the phone, can I get a new one or what can I get based on the one year product warrant?

    Now I am live in Baoding city, China, what I can do, it seems there is no apple store in my city??

Maybe you are looking for

  • MIRO when price in PO change without cancel MIGO

    hi gurus, i have a PO with item like below : Material code : AAAAA Price : 771,832 QTY : 100 PCS Then i do partial MIGO and MIRO with that price divided into : - MIGO & MIRO 1 : 25 pcs --> posting date : 03 June 2011 - MIGO & MIRO 2 : 35 pcs --> post

  • I receive a message to sign in to iCloud when replying to a message from another email account

    I receive a message to sign in to iCloud when replying to a message from another email account

  • Physical inventory document - for all A parts

    Hi,     We are in the process of preparing our system for physical inventory count for all A parts (Cycle count indicator is A). 1. We ran MI24 to get all open physical inventory documents.(they are around 100). 2.Then we ran MI31 (didn't create batc

  • Custom invoice Block into MIRO

    Hi Gurus, I need to block an invoice based on the account assignment (internal order). The block should be a 'logistic invoice block' (displayable as a manual block into MRBR). Some can help me ? thanks in advance CIAO Alda

  • Auto Smart Tone Going Dark For Part of Clip

    Hi, I'm a new user of Adobe Premiere Elements. I have version 13 installed on a PC running Windows 7 32bit. I have a problem that hopefully someone can help me with. I have put a clip onto the timeline and then run the Auto Smart Tone and used its cu