1.4 -> 1.5: Overwriting existing files? 1.4 -> 1.5: Overwriting existing files?
 

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

Main Menu

1.4 -> 1.5: Overwriting existing files?

Started by jan_64, January 25, 2014, 04:57:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jan_64

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!

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.

gmc

Quote from: jan_64 on January 25, 2014, 04:57:53 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!
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

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:

Quotepublic 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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

jan_64

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

gmc

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.
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

ΑndrĂ©

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.

jan_64

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

Thanks to all repliers.

Best regards
Jan

phill104

Excellent news and thanks for marking your topic solved.
It is a mistake to think you can solve any major problems just with potatoes.