Jump to content

Recommended Posts

Posted

Hi. I restored the backups from Tommy to Ricky this afternoon, but the PHP scripts do not work anymore. Normally I use Perl, to be honest knowing not lots more than nothing about PHP (but all my MySQL based statistics scripts are in PHP), it's difficult for me to see what the reason may be. Version 5 on one and version 7 on the other server perhaps?

 

Error messages:

  - Call to a member function fetch() on boolean

  - Call to a member function rowCount() on boolean

 

Thanks for help.

 

Posted

Did you edit the scripts to make sure the database name, username, and password are correct? Odds are the database name and username have changed, especially if you didn't reuse your old account's username.

 

The connect functions for mysql return false when they fail, which would result in you trying to perform queries on false instead of on a connection handle.

Posted

My Ricky username is the same as on Tommy, the database name, too; I recreated the (same) MySQL user. Noticed this morning in phpMyAdmin that the db has been created, but seems not contain any tables. Is this possible, in despite I got a "successful restore" message?

 

I also saw that the PHP version on Ricky is 5. On Tommy, it was 7, wasn't it? That may also give problems with some PHP statements?

Posted

Thanks. Manually recreated tables, statistics scripts ok now.

Other PHP problem however with my directory listing script (works fine on my local server and worked fine on Tommy): no output at all, no error log found either. May this be related to statements like

  return array($subdirlist, $filelist);
  list($subdirlist, $filelist) = getFileList($dir, 1);

that perhaps do not work or work differently with PHP5?

Sorry, but I've no ideas about this and trying for 2 weeks to get my site running correctly again... Thanks for any suggestions.


 

Posted

I really appreciated if someone could give me some advice concerning my PHP problems. Please ... I really need my site running properly again...

 

Also problems with Perl scripts based on the Chart module. This module wasn't originally installed on Tommy, but the admin had the kindness to install it, when I asked how I could use it. On Ricky, now, no chart at all. Scripts not working here? If the module wasn't installed, I would get a Perl error or a server error 500, wouldn't I?

 

Recreating the MySQL databases using the Restore function in C-panel just creates the db, no tables, no data insert. Is this really only due to the load on Ricky? Is the only possibility to redo all tables and data insert manully again?

 

Thanks...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...