Upgraded yesterday without issue, worked with the site after the upgrade then suddenly today I get this error on the home page of reellocations.com (It was reported to me)
Fatal error: Cannot redeclare customattachformappends() (previously declared in /home/reelloca/public_html/dir/includes/addeditfuncs.php:8) in /home/reelloca/public_html/dir/includes/addeditfuncs.php on line 28
I tried going back one version of addeditfuncs.php with no success and placed the 8/24/2001 6.1.9 version back in the directory.
I haven't touched the site since yesterday (upgrade to 6.1.9 and adding one link to the advanced search page).
Odd.
Trying to chase down the error while I wait for an email.
This doesn't make any sense... function customattachformappends is only declared on line 8, not on line 28, unless you've got a different includes/addeditfuncs.php than I have.
Verified that line 28 is in fact } in your copy as in mine. If I comment out the whole function it says the same about the next function. Must be somewhere that's calling the file in a second time. Ran a search and there are 41 files with 1 or more includes of that file so this could take a while.
Found it. The new sponsorship deductions system was calling that file without using require_once to verify it hadn't already been called. Not sure why it was already called in your index, but there are a few things like in-template feeds that use it.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Error on Index.php
Forum Regular
Usergroup: Customer
Joined: Nov 25, 2003
Total Topics: 70
Total Comments: 211
Upgraded yesterday without issue, worked with the site after the upgrade then suddenly today I get this error on the home page of reellocations.com (It was reported to me)
Fatal error: Cannot redeclare customattachformappends() (previously declared in /home/reelloca/public_html/dir/includes/addeditfuncs.php:8) in /home/reelloca/public_html/dir/includes/addeditfuncs.php on line 28
I tried going back one version of addeditfuncs.php with no success and placed the 8/24/2001 6.1.9 version back in the directory.
I haven't touched the site since yesterday (upgrade to 6.1.9 and adding one link to the advanced search page).
Odd.
Trying to chase down the error while I wait for an email.
Thanks!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This doesn't make any sense... function customattachformappends is only declared on line 8, not on line 28, unless you've got a different includes/addeditfuncs.php than I have.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Verified that line 28 is in fact } in your copy as in mine. If I comment out the whole function it says the same about the next function. Must be somewhere that's calling the file in a second time. Ran a search and there are 41 files with 1 or more includes of that file so this could take a while.
Forum Regular
Usergroup: Customer
Joined: Nov 25, 2003
Total Topics: 70
Total Comments: 211
Ok. Thanks!!!!!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Found it. The new sponsorship deductions system was calling that file without using require_once to verify it hadn't already been called. Not sure why it was already called in your index, but there are a few things like in-template feeds that use it.