Announcement

#1 2020-04-01 08:08:00

LynC
Member
2020-04-01
1

PHP7.4 version not working for my piwigo gallery

Hello/Hi/Greetings,

I have websites that is compatible to PHP 7.4, something wrong with database user, then the piwigo created in 2018 wasn't working anymore after a2 hosting tech team fix it, they then told me my piwigo gallery only work for php 5.6. so if i want to use gallery then all the websites can not be display (with errors), if i want to use website, then the gallery turn into blank.

I tested created another piwigo, which is working with php7.4.....

i was thinking to export the old gallery database into new gallery which works for php 7.4 but i found the database table structure are different.

how can i retrieve the images and categories setting from old one to new one? please kindly email the structure to my email if you need to have my image gallery link, i will email you back.

another error is when use PHP5.6 version

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /website.com/gallery/include/smarty/libs/Smarty_Compiler.class.php on line 270

Many thanks!  Lyn

Piwigo version: 2.10.2
PHP version: 7.4
MySQL version: 4.9.0.1 (phpMyAdmin)
Piwigo URL: http://

Offline

 

#2 2020-05-15 09:08:17

sumbitch
Member
2020-05-15
2

Re: PHP7.4 version not working for my piwigo gallery

Hi I also have the same issue, I get the following warnings all over the page:
Deprecated
: Invalid characters passed for attempted conversion, these have been ignored in
/mnt/websites/.../include/template.class.php
on line
215


Deprecated
: Invalid characters passed for attempted conversion, these have been ignored in
/mnt/websites/.../include/template.class.php
on line
1024

I did a fresh install of Ubuntu 20.04, along with PHP7.4. Any ideas for a workaround?

Thanks!

Offline

 

#3 2020-05-16 13:30:57

sumbitch
Member
2020-05-15
2

Re: PHP7.4 version not working for my piwigo gallery

Hiya guys! Couldn't really find an answer, so for I just added

error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

at the start of the template.class.php file. Hope I'm not screwing thing up?!

Offline

 

#4 2020-05-16 14:34:21

erAck
Only trying to help
2015-09-06
1414

Re: PHP7.4 version not working for my piwigo gallery

The correct way would be to add a configuration statement to your local config (use [extension by Piwigo Team] LocalFiles Editor if you don't know what that is about).
There are dozens of examples in the forum, just search for E_DEPRECATED


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact