PDA

View Full Version : multiple errors with init.php and functions.php


uprentiss
09-04-2009, 04:39 PM
last night, i upgraded the vb ad management system from 4.02 to 5.02

shortly after, i was getting this message when i tried to access my site

Fatal error: Call to a member function on a non-object in /homepages/42/d253160043/htdocs/forums/includes/functions.php(5721) : eval()'d code on line 15

this morning i was getting 2 different errors which i did not save, but something was strange as the ftp password appeared to have been changed and i was missing multiple files from my includes folder

i replaced the includes folder and edited the config.php file appropriately, and now i am getting these errors

Warning: Unknown([path]/kbank/init.php): failed to open stream: No such file or directory in [path]/includes/init.php(298) : eval()'d code on line 96

Warning: (null)() [function.include]: Failed opening '[path]/kbank/init.php' for inclusion (include_path='.:/usr/lib/php') in [path]/includes/init.php(298) : eval()'d code on line 96

Warning: Unknown([path]/kbank/hook_fetch_userinfo_query.php): failed to open stream: No such file or directory in [path]/includes/functions.php(1365) : eval()'d code on line 8

Warning: (null)() [function.include]: Failed opening '[path]/kbank/hook_fetch_userinfo_query.php' for inclusion (include_path='.:/usr/lib/php') in [path]/includes/functions.php(1365) : eval()'d code on line 8

Warning: Unknown([path]/kbank/hook_fetch_musername.php): failed to open stream: No such file or directory in [path]/includes/functions.php(1139) : eval()'d code on line 2

Warning: (null)() [function.include]: Failed opening '[path]/kbank/hook_fetch_musername.php' for inclusion (include_path='.:/usr/lib/php') in [path]/includes/functions.php(1139) : eval()'d code on line 2

Warning: Unknown([path]/kbank/hook_fetch_userinfo.php): failed to open stream: No such file or directory in [path]/includes/functions.php(1443) : eval()'d code on line 2

Warning: (null)() [function.include]: Failed opening '[path]/kbank/hook_fetch_userinfo.php' for inclusion (include_path='.:/usr/lib/php') in [path]/includes/functions.php(1443) : eval()'d code on line 2

Unable to add cookies, header already sent.
File: /homepages/42/d253160043/htdocs/forums/includes/class_core.php
Line: 3254

any help would be appreciated

Lynne
09-04-2009, 05:36 PM
Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

uprentiss
09-04-2009, 05:41 PM
hmm okay now i can access the forum

what do i do now?

thanks a lot btw

--------------- Added 1252090241 at 1252090241 ---------------

my forum seems to have reverted back to April

i backed up my database last night to a .sql file

Lynne
09-04-2009, 06:03 PM
How does a site just revert back to April? That doesn't just happen. Have you asked your host if they did something?

uprentiss
09-04-2009, 06:12 PM
no, ill do that

and even the templates i used arent there, just the ones from april

can the .sql backup i downloaded fix this problem?

--------------- Added 1252093550 at 1252093550 ---------------

im on the phone right now, they put me on hold to check if any changes were made on their end

uhhh im about to ask em how to upload a .sql backup through phpmyadmin

will that do any further damage?

Lynne
09-04-2009, 06:54 PM
Well, if you didn't do your backup correctly and then you upload it to the exact same database, then you could have problems. You should probably create a new database to put it in and then switch the info in your config.php file.

uprentiss
09-04-2009, 07:34 PM
well the file is much too big for phpmyadmin (its 13mb), i think the lady said the maximum size was 2mb for phpmyadmin

my package doesn't support SSH

so i dont know how i could upload my database backup anyways..

--------------- Added 1252105751 at 1252105751 ---------------

i can archive it into a .gz format and shrink it to about 3.24 mb but thats it

theres gotta be a way to upload this

Lynne
09-04-2009, 10:21 PM
Some people have reported success with these scripts:
MySQLDumper (http://www.mysqldumper.de/en/index.php)
MySQLHotxcopy (http://www.vbulletin.com/forum/showthread.php?t=134821&highlight=mysqlhotcopy)
Bigdump (http://www.ozerov.de/bigdump.php)

You may want to talk to your host about your options. If they are the ones who did something to put you back to an April database, then they should fix this for you.

uprentiss
09-04-2009, 10:27 PM
they havent done anything to it apparently so i guess it's not them

i'll take a look at those scripts, thanks