Support > cpg1.6 upgrading

Logins fail after updating to 1.6.03

<< < (2/6) > >>

aldrichtm:
debug_mode set to 1. Now what?

Can't change the PHP version.

The whole reason for the upgrade was because the site hasn't worked since we upgraded our PHP. Before that as far as I know it was working.

I have backups. What did you have in mind?

ron4mac:
I was hoping that setting debug mode would cause whatever error is occurring to be displayed.

My feeling is that there may be a corrupt file there somewhere.

You may have to agree to let us (me) have access to your cpanel (if that's what you have).

Another option is to make a change to include/debugger.inc.php.
At around line 55 in the file, make this change (comment out 1 line):

--- Code: ---            if ($phpver < 43) {
                $this->old_handler = set_error_handler('cpg_error_handler');
            } else {
//                $this->old_handler = set_error_handler(array(&$this, 'handler'));   // <- comment out this line
            }

--- End code ---
That may cause the error to be displayed.

aldrichtm:
Ah-hah!

Notice: Undefined index: auth in photo_galleries/update.php on line 97
Line 97:
if (!defined('SKIP_AUTHENTICATION') && !$_SESSION['auth']) {

Notice: Undefined variable: CONFIG in photo_galleries/update.php on line 296
Could not authenticate you.
Line 296:
echo $lang_update_php['could_not_authenticate']. '. '.sprintf($lang_update_php['provide_admin_account_dbase'], $CONFIG['dbname']).'. <a href="update.php">' . $lang_update_php['try_again'] . '</a>.';

So, does my update.php need updating, or is it something else?

I'm running purely command line or via php for debugging.

ron4mac:
I'm quite sure your update.php is okay ... it's something else.

I advise you to not run things from the command line/php ... it may cause permission or ownership issues with files. You should only be accessing the scripts using a web browser.

aldrichtm:
I use a browser for scripts that run on a browser, like Coppermine's. But for the upgrader/cpg_installer_stub, that actually caused ownership issues. My Coppermine files are owned by the account, not www. So I had to switch all the files the upgrade added back to the account in order for Coppermine to access them.

There is no cpanel, editing and viewing files, and viewing the database is via command line.

I'm willing, within reason, to install tools in the account that might help, provided they don't require root or admin access.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version