ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP 5.3.8 (__FILE__) problem

September 08, 2011 6:44am

Subscribe [1]
  • #1 / Sep 08, 2011 6:44am

    Reinos

    79 posts

    Hallo,

    Today I had a problem with a fresh installation of ExpressionEngine. Recently I use a custom config file where I set some standard configs: Config.php. In This file is I`m using the constant (__FILE__).
    When I was done with the default installation ‘Agile template’ and had activate the custom config.php I got a problem when I go to /about/contact. EE was not showing the /about/contact page but instead the index page.

    After some research I noticed that a report was made for (__FILE__):
    realpath() is now fully platform-independent. Consequence of this is that invalid relative paths such as (__FILE__) . “/../x” do not work anymore..

    Now I found the solution, at least it worked for me as. http://www.php.net/manual/en/language.constants.predefined.php#102733

    Does anyone here also have a problem with this. And is this already a known issue? Because I think (__FILE__) is also used in EE.

    Cheers.

  • #2 / Sep 08, 2011 7:05pm

    Lisa Wess

    20502 posts

    Hi Reinos,


    I think you’re likely running into a path info issue.  Can you review this FAQ entry and see if anything there fixes it? I’d rather rule out the normal known causes before we go down that path, especially given the custom config.

    Thanks!

  • #3 / Sep 13, 2011 4:25pm

    Reinos

    79 posts

    Aah stupid.. you got right.. I was in a hury because we had to finish the website for a customer.
    Thanks Lisa!

  • #4 / Sep 13, 2011 4:26pm

    Lisa Wess

    20502 posts

    My pleasure, Reinos!  Glad you have a solution.

    If anything else comes up, please do let us know.  thank you!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases