Support > cpg1.6 install
Easy fresh install of (or upgrade to) CPG 1.6.x
ron4mac:
The script attached here can be used to create a new installation of CPG 1.6 (or update an existing gallery). Make sure you have a database user and password already configured on your server. Load the script (as cpg_installer_stub.php) 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
UweB:
Hello.
I have twice galleries with version 1.5.20
with php 5.6 both galleries works fine
now my provider changes to php 7.2
gallery one
all data old content, use the cpg_installer_stub.php (version 3.2)
start running
http://www.***.com/PORTAL/cpg/cpg_installer_stub.php
--> All package files were successfully placed. Click below to complete the install. (I used V 1.6 04)
--> click on the button "Complete install"
--> http://***/PORTAL/cpg/update.php
-->Fatal error: Uncaught Error: Call to a member function fetchAssoc() on boolean in /homepages/***/PORTAL/cpg/include/init.inc.php:181 Stack trace: #0 /homepages/***/PORTAL/cpg/update.php(26): include_once() #1 {main} thrown in /homepages/***/PORTAL/cpg/include/init.inc.php on line 181
gallery two
I have deleted all files (except albums folder) and upload the complete V 1.6.04 data
I have upload anycontent.php and include/config.php from backup (older version)
--> http://www.***.com/PORTAL/cpg2/upgrader.php
--> Fatal error: Uncaught Error: Call to a member function fetchAssoc() on boolean in /homepages/***/PORTAL/cpg2/include/init.inc.php:181 Stack trace: #0 /homepages/***/PORTAL/cpg2/upgrader.php(21): require() #1 {main} thrown in /homepages/***/PORTAL/cpg2/include/init.inc.php on line 181
what is wrong?
Note: If I change back to php 5.6 and upload the backup, everthing is fine. But I can't use php 5.6 anymore, because my provider will not recommend this version since 12/2018
ron4mac:
For some reason, it seems to not connect to your database. The include/config.inc.php file must exist in its proper location when update.php runs.
The installer stub is a convenience method. If, for some reason, it does not work for you, you can resort to the standard method.
https://coppermine-gallery.net/docs/curr/en/upgrading.htm#upgrade_any
[EDIT]
I have just made a change to CPG 1.6 that should display/record the database problem in your situation. Please use the installer_stub again but choose the bottom install package (highlighted in red). The error situation should be displayed and/or recorded in the logs directory.
UweB:
Hello,
thank you for the fast answer.
for the first gallery (1.6.04) I used the http://www.***.com/PORTAL/cpg/cpg_installer_stub.php again
config.inc is located in Root/include/config.inc.php
ones time with php 5.6
ones time with php 7.2
same RESULT:
Fatal error :
.
When read CONFIG from database
database error: :
in second gallery I have not checked (tomorrow will do)
ron4mac:
Very strange problem!!
Would you allow me to examine your site?
Place the attached file (unzipped) in the root of your website and PM me with a link to the site.
The file will allow only me to view files and make any needed uploads to resolve the issue.
Navigation
[0] Message Index
[#] Next page
Go to full version