CPG 1.6 (PHP7) Upgrade/Install Aid CPG 1.6 (PHP7) Upgrade/Install Aid
 

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

CPG 1.6 (PHP7) Upgrade/Install Aid

Started by ron4mac, March 31, 2017, 10:34:08 PM

Previous topic - Next topic

0 Members and 10 Guests are viewing this topic.

ron4mac

For currently running CPG 1.5.20+ installations, an assistive script to use for upgrading to a release version of CPG 1.6 was made available here.

Attached to this post is a script that can be used to upgrade a CPG 1.5.20+ installation that has suddenly stopped working because of PHP changes (for example) at your site. Place the script file (as cpg_installer_stub.php) in the root of your CPG installation. Access the script as <your_coppermine_url>/cpg_installer_stub.php. Choose to upgrade your current installation.
Be very aware: you could be using a plugin or theme that is not compatible with CPG 1.6

This same script can also be used to create a new installation of CPG 1.6 (or update an existing one with the latest changes).   Make sure you have a database user and password already configured on your server.  Load the script to an appropriate place on your server (where you want the installation to be).  Access the script from a web browser and perform the installation.

Update: v3.3 better notification of file placement errors
Update: v3.4 added robustness for more restricted systems
Update: v3.5 option to show all available CPG 1.6.x versions

netb

Hello,

I kind of missed that post and did a normal upgrade by downloading the 1.6.03 github source, then overwriting the 1.5 cpg and starting the update.php. Should I be concerned or look for something not quite right? At first glance the script seems to download the latest github files as well.

ron4mac

You're good either way. The script was just to make it easier for some people.

Dale M.

Tried to do "fix" by using "cpg_installer_stub.php" and all i got was a error:

Releases of CPG not found at Github

What do I do now?

Dale



ron4mac

It would seem that your server is not configured in a way that will allow the method to work for you.

Your options are:
Get your hosting provider to backoff PHP7 long enough for you use the "upgrader.php" method. (other thread)

Get your hosting provider to turn on "allow_url_fopen" for your currently running PHP7. Then use the "cpg_installer_stub.php" method.

Use "manual" method to perform the upgrade. http://documentation.coppermine-gallery.net/en/upgrading.htm

Dale M.

Quote from: ron4mac on July 15, 2017, 03:32:13 AM
It would seem that your server is not configured in a way that will allow the method to work for you.

Your options are:
Get your hosting provider to backoff PHP7 long enough for you use the "upgrader.php" method. (other thread)

Get your hosting provider to turn on "allow_url_fopen" for your currently running PHP7. Then use the "cpg_installer_stub.php" method.

Use "manual" method to perform the upgrade. http://documentation.coppermine-gallery.net/en/upgrading.htm

IF I use "manual" method for up grade, it takes me to version 1.5.46, Correct?... Does that get me past the  mysql(i)  and php7 problem or is it just another layer of work and problem will still persist?

IF "manual" method as describes in link works for 1.6.X what is proper download file to do upgrade and do same instruction apply?

Dale

ron4mac

Use the 1.6.03 version here: https://github.com/coppermine-gallery/cpg1.6.x/releases

Follow the same method as for 1.5.  You MUST run <your-cpg-site>/update.php after uploading all the files.

Dale M.

Quote from: ron4mac on July 15, 2017, 03:50:20 PM
Use the 1.6.03 version here: https://github.com/coppermine-gallery/cpg1.6.x/releases

Follow the same method as for 1.5.  You MUST run <your-cpg-site>/update.php after uploading all the files.

Thank you... The adventure continues... Keeping fingers crossed....

Dale M.

Dale M.

Quote from: Dale M. on July 15, 2017, 06:48:39 PM
Thank you... The adventure continues... Keeping fingers crossed....

Dale M.

Ok.... I can see  Coppemine and navigate through all the images, BUT can not log in as "admin"... Get this error message:

This page isn't working

mariposamuseum.com is currently unable to handle this request.

HTTP ERROR 500


Going to search forum for possible answers... It's getting better, but not quite "there" yet...

Dale

ron4mac


Dale M.

YES for second time, may have entered "update.php" incorrectly in URL first time around and did not any error message...

Everything seems good now.. Keeping fingers crossed!

Thank you the guidance and patience..

Cheers!

Dale M.

DKogan

Thanks for the suggestion....I'll wait for the "stable" release. I understand its a beta release but my users might not understand. :)

ron4mac

Quote from: DKogan on November 17, 2017, 11:04:39 PM
Thanks for the suggestion....I'll wait for the "stable" release. I understand its a beta release but my users might not understand. :)
To think that CPG 1.6.03 is not stable would be wrong thinking. It has only not been fully released due to lacking updates for the documentation. Your users may also not understand your gallery being down because your hosting provider changed server software ... something that v1.6.x is ready for. Ultimately though ... your choice.

mikeandm

Hello - Apologies for what must be a truly dumb question but I can't get cpg_installer_stub.php to run beyond its start screen. With the Install location selected as "Upgrade..." and Available Install Packages selected as "CPG Developer Release 1.6.03", pressing "Install Selected Package" just produces a popup message "Please select the package to install". This happens (repeatedly) on Microsoft Edge and Internet Explorer. The radio button for the selection shows correctly. I'm not aware of any unusual settings in the browsers. Any ideas on what can be going wrong? Many thanks in advance...

mikeandm

Yes - seems it was a daft question and the answer appears to be "Use Firefox!" (or presumably other browsers). Still clueless as to why Edge and IE don't play... Anyway, script now run successfully - very many thanks!

ron4mac

Quote from: mikeandm on December 29, 2017, 06:29:07 PM
Still clueless as to why Edge and IE don't play...
Added an updated script (above) for IE compatibility.

Dankriss

I just used this as SourceForge is down at the moment... or is for me... WOW so much easier to do a new install...


Only problem I had because I am thick is to not upload the .txt document but make a new one!  doh!


Thanks


Kriss :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

anglefire

I've run this script on  my 1.5.20 install - and it says everything is installed and the option to complete install is displayed.

But running that and I get this error:

Fatal error: Uncaught Error: Call to undefined function cpg_db__fetch_assoc() in /var/www/disco3club/public_html/gallery/bridge/phpbb3.inc.php:167 Stack trace: #0 /var/www/disco3club/public_html/gallery/bridge/udb_base.inc.php(168): cpg_udb->get_groups(Array) #1 /var/www/disco3club/public_html/gallery/bridge/udb_base.inc.php(89): core_udb->load_user_data(Array) #2 /var/www/disco3club/public_html/gallery/include/init.inc.php(257): core_udb->authenticate() #3 /var/www/disco3club/public_html/gallery/update.php(26): include_once('/var/www/disco3...') #4 {main} thrown in /var/www/disco3club/public_html/gallery/bridge/phpbb3.inc.php on line 167

Any ideas?

Mark
Mark
Disco3Club Admin

ron4mac

#18
Run the installer script again but choose the bottom (red) version to install. You'll pick up a change that corrects this (along with some other bug fixes).

But also please note that the recommended version to upgrade from in this way was mentioned as 1.5.32+.

anglefire

Thanks - that has helped - the only issue I have now is that my coppermine admin account details are not what I thought they were!
Mark
Disco3Club Admin