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: 1.4 -> 1.5: Overwriting existing files?  (Read 8058 times)

0 Members and 1 Guest are viewing this topic.

jan_64

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • Nature and Travel Photos
1.4 -> 1.5: Overwriting existing files?
« on: January 25, 2014, 04:57:53 pm »

Hello,

following the instruction to upgrade (1.4 to 1.5.26) it says

"Except for the "albums" directory, upload all of the new files and directories, making sure not to overwrite your anycontent.php file or the albums directory."

Does that mean to upload the new files to the same place where the old version files are existing?

If so, this would mean to overwrite them. I know, without albums and anycontent. And what about include/config.inc.php? Should'nt this file also be saved?

Or can I put the new version files in a different folder, adding the old anycontent.php plus album folders and changing the root link to the new folder?

Thanks in advance for an answer!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #1 on: January 25, 2014, 06:10:16 pm »

Yes, you just overwrite the files in the existing folder. Always backup both your files and database first just in case things go wrong. We also recommend disabling any plugins while you upgrade as some may not be compatible with CPG1.5.x
Logged
It is a mistake to think you can solve any major problems just with potatoes.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #2 on: January 25, 2014, 08:47:41 pm »

And what about include/config.inc.php? Should'nt this file also be saved?
The downloads for CPG do NOT include this file - (they have a sample named accordingly only..) The real file is created by the installer.
So it won't overwrite that file..

But as Phill said - backup everything first...

I typically do the upgrade to a test gallery first - resolve any plugin issues - and make a checklist for myself before rolling out to multiple galleries.
The changes within a release (1.5.22 - 1.5.26) are very easy... A little more work to get from 1.4 to 1.5 depending on your plugins and customizations - but the documentation will get you there...

Good luck!
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

jan_64

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • Nature and Travel Photos
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #3 on: January 25, 2014, 10:14:58 pm »

Thank you for your fast replies!

I did as recommended and overwrote (after several backups).

No I tried to start upgrade.php but received only a blank screen.  :-\

If I call the gallery itself (www.jangaeblerphoto.de) to log-in I receive this error message: :(

"Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/23/d146906560/htdocs/cpg1412/include/inspekt.php on line 117"


There is a file inspekt.php in the folder include, showing this content at line 117:

Quote
  public static function makeServerCage($strict=TRUE) {
        /**
         * @staticvar $_instance
         */
        static $_instance;

        if (!isset($_instance)) {
            $_instance = Inspekt_Cage::Factory($_SERVER, $strict);
        }
        $GLOBALS['HTTP_SERVER_VARS'] = NULL;
        return $_instance;
    }


    /**
     * Returns the $_GET data wrapped in an Inspekt_Cage object
     *
     * This utilizes a singleton pattern to get around scoping issues
     *
     * @param boolean $strict whether or not to nullify the superglobal array
     * @return Inspekt_Cage
     * @static
     */

What my be wrong?
Jan
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #4 on: January 25, 2014, 10:37:56 pm »

This probably means some files have not uploaded correctly. Please re-upload and try again. If you used a web based ftp app to upload they are known to be a bit iffy. Please use a decent ftp app such as Filezilla.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

jan_64

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • Nature and Travel Photos
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #5 on: January 25, 2014, 11:08:07 pm »

Thanks. Well, I am using Filezilla ...

I changed permissions of all files and folders to 755, but does not help.

I changed from PHP 4 to 5.4: error message changes to "Fatal error: ".

Btw: the parse error appears at all php executions, also with index.php, install.php or versioncheck.php.

I would be very happy for further ideas how to solve this issue.
Jan
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #6 on: January 26, 2014, 12:32:26 am »

A syntax error in inspekt.php is very likely a corrupted file...
As Phill suggested - re-upload.

I find it easier (if your sites cPanel or equivalent supports it) to upload the zip file, unzip and copy where needed using File Manager on the server.
I can very quickly deploy to multiple galleries that way.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #7 on: January 27, 2014, 11:45:22 am »

The parse error is most likely caused by PHP 4. As you said you just switched to PHP 5.4, please post the new error message, if there is one expect "Fatal error: ".

Alternatively (temporary) switch back to PHP 4 and use the patch package as described here. Of course it's recommended to use PHP 5.4 and fix the actual issue for your "Fatal error" message, as it probably also occurs with the older PHP version.
Logged

jan_64

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • Nature and Travel Photos
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #8 on: January 27, 2014, 09:00:35 pm »

I switched again to PHP 5.4 and now it works!  ;D  (see http://www.jangaeblerphoto.de/)

Thanks to all repliers.

Best regards
Jan
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: 1.4 -> 1.5: Overwriting existing files?
« Reply #9 on: January 27, 2014, 09:21:14 pm »

Excellent news and thanks for marking your topic solved.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.