Steev
Posts: 47

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?

3 years ago#3055
Josh S.
Posts: 1.5k
Themes: 16
Plugins: 15
Downloads: 113.1k

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

3 years ago#3056
Steev
Posts: 47

Going to either address gives me this:

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

sys:/Apache2/htdocs/wiki

first

sys:/Apache2/htdocs/wiki

 

 

3 years ago#3058
Josh S.
Posts: 1.5k
Themes: 16
Plugins: 15
Downloads: 113.1k

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.

3 years ago#3060
Steev
Posts: 47

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: 3 years ago#3061
Josh S.
Posts: 1.5k
Themes: 16
Plugins: 15
Downloads: 113.1k

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.

3 years ago#3064

gpEasy News

4.3.2
2/18/2014

The final release of gpEasy 4.3.2 is now available. This is primarily a third-party package ... Read More

4.3 Final
11/4/2013

The wait is over. The final release of gpEasy 4.3 brings some exciting new features ... Read More

More News

Firma Sebastian Schlichter

dyna-consult.de ist Ihre Anlaufstelle im Internet für Webhosting, Webspace und weiterer Serviceprodukte für einen erfolgreichen Auftritt im World Wide Web. Immer hochverfügbar u...

Find out more about gpEasy's Provider Spotlight

Log In

  Register