View Full Version : Fatal index.php error
February 10th, 2005, 02:21 PM
Well, I just installed the gallery and when accessing "index.php" I get this error:
Fatal error: Cannot increment/decrement overloaded objects nor string offsets in /home/********/**********/gallery/index.php on line 75
Line 75 contains:
I removed the default categories that come with a stock vBaGallery, and now it seems to show the index page..
Then adding a category, I get the error again. :confused:
If I remove the code:
// Sort out the stats
foreach ($catinfo AS $count)
$stats['images'] += $count['imagecount'];
$stats['posts'] += $count['postcount'];
} Then I have no problems at all.. Very strange. It still seems to count my stats on the index.php page. What is the purpose of the code I had to remove?
February 12th, 2005, 01:19 PM
I've never seen that error before but anyway, you shouldn't have to remove any code for it to work!
Is your server running PHP5?
February 12th, 2005, 01:32 PM
Looks like I'm running PHP Version 4.3.10
February 12th, 2005, 01:37 PM
That's a pretty standard version, don't understand why you have that issue on a brand new installation!
Undo your changes (or to be safe, reupload new gallery php files) and turn off stats in your admincp -> gallery settings. See if that changes anything.
February 12th, 2005, 02:32 PM
Hmm. VERY strange. I undid the changes (so it's now a stock index.php) and it works now? So weird.. I know it wasn't really a server issue cause none of my other pages were having problems.
Strange.. I guess it's fixed now though? haha
February 12th, 2005, 02:37 PM
But did you turn off stats or just undid the changes?
If you need to turn off stats for it to work, take the issue to Brian.
March 20th, 2005, 04:26 AM
Was there a solution found for this? I had the same problem on my test server, including same error message. Turning off the stats in gallery admin worked.
March 20th, 2005, 09:34 AM
Not sure how that'd be happening. If you'd like to submit a support ticket though I'll be glad to take a look.
March 20th, 2005, 02:37 PM
I've only got it running on a test server at the moment. Site is very much under construction. PHP 4.3.1, Apache 1.3.27, on Slackware. Site also has vbportal but I don't think that should have any bearing at all.
I'll try it on a production server before I submit a ticket.
March 20th, 2005, 02:54 PM
Everything is fine on the production server with PHP 4.3.10. :confused:
April 6th, 2005, 02:48 PM
I have the same error at the same line, PHP Version 4.3.10. Tried the suggestions above, still don't help.
How to submit a ticket?
April 6th, 2005, 04:14 PM
Homepage => Members' Area => Support Tickets
June 11th, 2005, 01:33 PM
Does anyone know how to fix this problem? I have the same problem.
June 11th, 2005, 01:56 PM
It's most likely from another hack you have installed. Try adding $stats = ''; somewhere in your gallery/index.php file, just below the call to your gallery_global.php file.
June 11th, 2005, 09:12 PM
Thanks for your reply,
I add this and it works
Look in your gallery/index.php file and add this just below the call to gallery_global.php.
Is this the same as what you said above?
June 12th, 2005, 10:51 AM
Yes, that will work fine as well.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.