Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Fatal Error after 1.4.3 Upgrade.  (Read 9603 times)

0 Members and 1 Guest are viewing this topic.

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Fatal Error after 1.4.3 Upgrade.
« on: February 21, 2006, 06:12:55 am »

I am getting a Fatal Error, I have followed the directions... I am upgrading from 1.3.5 to 1.4.3, and as of now nothing works, thankfully this is a backup but still...I am not happy, I can't upgrade at all... I can't side grade, and as far as I can tell I can't do squat... I need help and I'm getting lost in the process...

This is what I am reading...

http://www.cyberpawz.com/Coppermine2/docs/index.htm#13

And this is what I get as results...

http://www.cyberpawz.com/Coppermine2/

Something isn't right in Denmark, and it's not me. On that note, whenever I do the update.php it seems for some reason the updates aren't taking, but all folders and subfolders, and files have the CHMOD of 777

http://www.cyberpawz.com/Coppermine2/versioncheck.php

Oh, and this is what my database looks like now...thankfully it hasn't messed up the old server at all... and I do have backups thankfully even if it did.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.cyberpawz.com%2Fimages%2FPicture1.jpg&hash=e763c96f0e296a2193f95384dcb52f7757c04676)
« Last Edit: February 21, 2006, 06:43:16 pm by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal Error after 1.4.2 Upgrade.
« Reply #1 on: February 21, 2006, 06:40:45 am »

1.  You uploaded all of the 1.4.3 files to your site?
2.  You ran the upgrade.php script?
3.  You are using the default theme, and not a custom theme?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

  • Guest
Re: Fatal Error after 1.4.2 Upgrade.
« Reply #2 on: February 21, 2006, 12:39:09 pm »

Run a query to switch on debug mode.

Code: [Select]
UPDATE cpg11d_config SET `value` = '1' WHERE `name` = 'debug_mode' LIMIT 1
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Fatal Error after 1.4.3 Upgrade.
« Reply #3 on: February 21, 2006, 02:54:21 pm »

1.  You uploaded all of the 1.4.3 files to your site?
2.  You ran the upgrade.php script?
3.  You are using the default theme, and not a custom theme?

Yes to all three.

Run a query to switch on debug mode.

Code: [Select]
UPDATE cpg11d_config SET `value` = '1' WHERE `name` = 'debug_mode' LIMIT 1

Still a Fatal Error.
« Last Edit: February 21, 2006, 04:31:54 pm by Cyberpawz »
Logged

Nibbler

  • Guest
Re: Fatal Error after 1.4.2 Upgrade.
« Reply #4 on: February 21, 2006, 03:07:04 pm »

Open include/functions.inc.php, find

Code: [Select]
        if (!$CONFIG['debug_mode']) {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {

change to

Code: [Select]
        if ($CONFIG['debug_mode'] === '0') {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Fatal Error after 1.4.3 Upgrade.
« Reply #5 on: February 21, 2006, 03:19:50 pm »

Open include/functions.inc.php, find

Code: [Select]
        if (!$CONFIG['debug_mode']) {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {

change to

Code: [Select]
        if ($CONFIG['debug_mode'] === '0') {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {



Parse error: parse error, unexpected T_STRING in /Volumes/Server/htdocs/Coppermine2/include/functions.inc.php on line 240

Which is the code you told to me paste in...

or specifically

Code: [Select]
          cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
Shouldn't it be...

Code: [Select]
    if (!$CONFIG['debug_mode'] === '0') {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {

Instead of

Code: [Select]
    if ($CONFIG['debug_mode'] === '0') {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {
« Last Edit: February 21, 2006, 04:31:44 pm by Cyberpawz »
Logged

Nibbler

  • Guest
Re: Fatal Error after 1.4.2 Upgrade.
« Reply #6 on: February 21, 2006, 03:34:03 pm »

There is nothing wrong with the code I posted.
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Looks like another bug...
« Reply #7 on: February 21, 2006, 04:29:18 pm »

Ok, this is a little odd... my original database looks like it got afflicted with a 1.4.3 bug by accident... as well as some of the PHP coding as well...

http://www.cyberpawz.com/coppermine/index.php

Is there any reason why this is happening? Also how do I fix this without destroying it... I can't afford to have this be ruined on me, this is live data, and I have too many people relying on me to keep this up and running right now to take it down.
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Fatal Error after 1.4.3 Upgrade.
« Reply #8 on: February 21, 2006, 04:30:15 pm »

There is nothing wrong with the code I posted.

That's fine, but why isn't my coppermine site working now? Or correctly?

Something has to be wrong somewhere.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Looks like another bug...
« Reply #9 on: February 21, 2006, 04:39:00 pm »

It looks like you included the gallery code an additonal time. Redownload a fresh copy from our site and upload the unmodified files.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Fatal Error after 1.4.3 Upgrade.
« Reply #10 on: February 21, 2006, 04:40:11 pm »

Make sure you're not using a wysiwyg editor that messes with code. Use wordpad and save as text-only.
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Looks like another bug...
« Reply #11 on: February 21, 2006, 04:55:34 pm »

It looks like you included the gallery code an additonal time. Redownload a fresh copy from our site and upload the unmodified files.

http://www.cyberpawz.com/Coppermine3/

Just did, same issue.
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Fatal Error after 1.4.3 Upgrade.
« Reply #12 on: February 21, 2006, 04:56:28 pm »

Make sure you're not using a wysiwyg editor that messes with code. Use wordpad and save as text-only.

I'm using BBEdit 8, as far as I know I've never had any problems with the program....
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Looks like another bug...
« Reply #13 on: February 21, 2006, 05:00:17 pm »

According to the source code, it's v. 1.3.5. Make sure your ftp app overwrites existing files and that you're uploading php files in ascii not binary.
Logged

Cyberpawz

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 122
Re: Looks like another bug...
« Reply #14 on: February 21, 2006, 05:11:06 pm »

According to the source code, it's v. 1.3.5. Make sure your ftp app overwrites existing files and that you're uploading php files in ascii not binary.

I got it working, for some reason the 1.4.3 I downloaded before was corrupted... it's working fine under www.cyberpawz.com/Coppermine/

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.