Topic Closed
Steev
47 Posts

Will do first thing when I get to the office tomorrow . . . but does this include the ctype fix we had to do previously or should I add that in?

4 years ago#3055

Josh S.
1.6K Posts
134K Downloads
16 Themes
15 Plugins

Sounds good. It does include the ctype fix. It's not a script that will make things work, but will give us some information about what is going on. The output will be pretty simple, something like:

/var/www/path/include/common.php

/var/www/path

first

/var/www/path

4 years ago#3056

Steev
47 Posts

Going to either address gives me this:

sys:/Apache2/htdocs/wiki/include/common.php

sys:/Apache2/htdocs/wiki

first

sys:/Apache2/htdocs/wiki

 

 

4 years ago#3058

Josh S.
1.6K Posts
134K Downloads
16 Themes
15 Plugins

That's a bit disappointing, I was hoping for something different.

Since the paths are the same, then the problem comes down to the file_exists(..) php function that appears to be giving two different results for the same arguments. If that's the case, then there's not much we can do. I do have another common.php file you could try that would give us a little more information, but if it continues to act the way it's been acting, we may be out of luck.

4 years ago#3060

Steev
47 Posts

With this common.php going to http://192.168.1.2/wiki/ results in

sys:/Apache2/htdocs/wiki/data/_site/config.php exists

and going to http://192.168.1.2/wiki/include/combine.php results in

sys:/Apache2/htdocs/wiki/data/_site/config.php doesnt exist

- - - - -

Does this "@" symbol make any difference?:

function gpInstalled(){
        global $dataDir;
        if( @file_exists($dataDir.'/data/_site/config.php') ){
            return;

Edited: 4 years ago#3061

Josh S.
1.6K Posts
134K Downloads
16 Themes
15 Plugins

Does this "@" symbol make any difference?:

The @ symbol doesn't affect the return value of the function unfortunately. It only affects how errors are reported. You could remove the @ symbol to see if any errors pop up (you'd have to turn debugging on as well, which is pretty easy).

As you noticed, the same function with identical parameters is returning two completely different values within seconds of each other. ??  I'm a bit stumped.

I've searched google for mentions of similar problems, and haven't come up with anything. The only thing I can think of is to maybe reinstall apache & php and make sure you have the most up to date packages. Really sorry I can't be more help.

4 years ago#3064

Topic Closed

 

 

gpEasy News

4.5 Beta 3
6/7/2015

The third beta release of gpEasy 4.5 is now available for download.

4.5 Beta 2
5/27/2015

The second beta release of gpEasy 4.5 is now available for download. Check out gpEasy ... Read More

More News

Les sites de terenez.com

Web hosting et services en ligne, votre site Internet à partir de 25€/an *Aide gp|Easy en français

Find out more about gpEasy's Provider Spotlight

Log In

  Register