Advanced search  

News:

cpg1.5.44 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.42 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: PHP 7.0  (Read 537 times)

0 Members and 1 Guest are viewing this topic.

luchtzak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • Luchtzak Aviation
PHP 7.0
« on: January 10, 2017, 09:12:11 PM »

Got my server upgraded to 7.0 yet coppermine is INOP now.

Any solution ?

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4322
    • Windsurf.me
Re: PHP 7.0
« Reply #1 on: January 10, 2017, 10:26:17 PM »

Coppermine 1.5.x does not support PHP7. There is available version 1.6.x which is still in beta and does support PHP 7.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

ron4mac

  • Dev Team member
  • Coppermine frequent poster
  • ****
  • Country: us
  • Offline Offline
  • Posts: 465
Re: PHP 7.0
« Reply #2 on: January 11, 2017, 01:56:28 AM »

Any solution ?

If what you were running was a fairly recent version of CPG1.5.x (say at least version 1.5.38), you should be able to upgrade your installation following these directions: http://forum.coppermine-gallery.net/index.php/topic,78505.msg381584.html#msg381584
[edit: that won't work because you can't log in .. duh]
You'll have to do a manual install of v1.6.01: https://github.com/coppermine-gallery/cpg1.6.x/releases
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4322
    • Windsurf.me
Re: PHP 7.0
« Reply #3 on: January 11, 2017, 02:50:10 PM »

Many hosts also allow the possibility to continue running an older version of PHP for specific URLs via either an .htaccess, via the cpanel or via the php.ini. It might be worth speaking to your host if you want to use the upgrade method mentioned above.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

maxhasher

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: PHP 7.0
« Reply #4 on: January 12, 2017, 02:53:21 PM »

I know 1 and 1 will allow you to use older versions of php5 but will add a maintenance fee for doing so.
I have got the 1.6 working on my local box.
Do you think it is more sense just downloading the production gallery tables and albums, converting the tables and then  uploading the code and  tables to replace the existing ones but with the prod passwords in place?

p.s. would you want any test support? I used to be employed as an IT tester.
Logged

ron4mac

  • Dev Team member
  • Coppermine frequent poster
  • ****
  • Country: us
  • Offline Offline
  • Posts: 465
Re: PHP 7.0
« Reply #5 on: January 12, 2017, 03:05:53 PM »

It makes the most sense to just upgrade your site in the standard way with a fresh copy of CPG 1.6.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4322
    • Windsurf.me
Re: PHP 7.0
« Reply #6 on: January 12, 2017, 04:32:51 PM »

p.s. would you want any test support? I used to be employed as an IT tester.

We always appreciate any contributions from the community. The whole project is community based, the admin team here do it as a hobby. As you know, much of the code, themes, language packs, documentation etc has been contributed by the users. We would love to grow the team and see more people developing as that would really speed things up.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

luchtzak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • Luchtzak Aviation
Re: PHP 7.0
« Reply #7 on: January 15, 2017, 11:59:12 PM »

I have the following error code, do I need to change something in the config.php file ?

Code: [Select]
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/luchtzak/domains/luchtzak.be/public_html/pictures/include/database/mysql/dbase.inc.php:29 Stack trace: #0 /home/luchtzak/domains/luchtzak.be/public_html/pictures/include/init.inc.php(173): CPG_Dbase->__construct(Array) #1 /home/luchtzak/domains/luchtzak.be/public_html/pictures/index.php(25): require('/home/luchtzak/...') #2 {main} thrown in /home/luchtzak/domains/luchtzak.be/public_html/pictures/include/database/mysql/dbase.inc.php on line 29

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 663
    • GMC Design Photo Gallery
Re: PHP 7.0
« Reply #8 on: January 16, 2017, 03:25:01 AM »

Deleted...
« Last Edit: January 16, 2017, 05:26:45 AM by gmc »
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

ron4mac

  • Dev Team member
  • Coppermine frequent poster
  • ****
  • Country: us
  • Offline Offline
  • Posts: 465
Re: PHP 7.0
« Reply #9 on: January 16, 2017, 05:25:03 AM »

I have the following error code, do I need to change something in the config.php file ?

It looks like you are running CGP 1.6 that was configured to access the db via the mysql interface but must have switched to PHP 7 ... where mysql does not work.

In the file include/config.inc.php, change the database type to mysqli.

Code: [Select]
$CONFIG['dbtype'] = 'mysqli'; // Your database type
Logged

luchtzak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • Luchtzak Aviation
Re: Re: PHP 7.0
« Reply #10 on: January 16, 2017, 11:21:56 AM »

It looks like you are running CGP 1.6 that was configured to access the db via the mysql interface but must have switched to PHP 7 ... where mysql does not work.

In the file include/config.inc.php, change the database type to mysqli.

Code: [Select]
$CONFIG['dbtype'] = 'mysqli'; // Your database type

Thanks!

www.luchtzak.be/pictures
Pages: [1]   Go Up
 

Page created in 0.072 seconds with 23 queries.