View Full Version : Error at top of page
February 17th, 2009, 03:32 AM
Quick question I am currently getting this error:
Warning: stristr() [function.stristr]: Empty delimiter in /home/mini/photogallery/public/pp-inc.php on line 4512
I also noticed that the signatures are not being parsed correctly. Any ideas?
Photopost 6.2, Vbulletin 3.8.1, Vbulletin Blog 1.05, Nginx, Mysql 5.0.x, php 5.2.8 + PHP-FPM patch.
February 17th, 2009, 09:43 AM
$agent = addslashes($_SERVER['HTTP_USER_AGENT']);
$referer = addslashes($_SERVER['HTTP_REFERER']);
if ( $referer && !stristr($referer, $_ENV['HOSTNAME']) )
PHP: Superglobals - Manual (http://us.php.net/manual/en/language.variables.superglobals.php)
Looks to me like your has an issue with superglobals. Your host might be able to tell you what might help there or fix the server.
As far as signatures this will help.
February 17th, 2009, 02:29 PM
Signatures are working fine now.
As for the "$_ENV['HOSTNAME']" has no value. I am unsure why as the server has a hostname. I am a little confused as to why it is used as I can set the hostname of the server to anything... including "bleh"
asdf:~# hostname bleh
So I just added this line to config-inc.php: $_ENV['HOSTNAME'] = 'bleh';
Which matches the server config.
All seriousness Ive put it back to a domain-name but I do not understand why this is used?
February 17th, 2009, 03:03 PM
You can read about superglobals server setup etc but essentially the code your looking at in photopost where the error is has to do with grabbing the online users and there information,
February 17th, 2009, 04:48 PM
I need to read more about nginx.
For some reason I just cannot get it to set the hostname no matter what. Anyways I have solved it by forcing it in the config script.
February 17th, 2009, 08:32 PM
Thats good so you must run your own server.
November 21st, 2009, 01:13 AM
I have quite the same config. nginx/php-fpm etc. and the same error on top.
Is the only solution to set the variable? Can you give me some help, please?
November 21st, 2009, 06:37 AM
If your trying to contact a specific user try the PM system ;)
If he has not elected to be notified of replies to posts he may never see you responded here.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.