Announcement

#1 2018-06-26 11:34:22

Razer2k
Member
2018-06-26
2

Getting two lines of errors after installation - what can I do?

Hello,

I just installed Piwigo on my managed webspace and directly getting two PHP errors:

Code:

Deprecated: Function create_function() is deprecated in /var/dirs/piwigo/include/functions.inc.php on line 2165

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/dirs/piwigo/include/template.class.php on line 293

What can I do to fix them?

Piwigo version: latest without any extras installed
PHP version: 7.2.6
MySQL version: v5.7.22

Offline

 

#2 2018-06-26 19:38:22

executive
Member
2017-08-16
1214

Re: Getting two lines of errors after installation - what can I do?

you can read one of the dozens of topics that already exist about the message (which is not an error)

Offline

 

#3 2018-06-30 00:53:56

olfart
Member
2018-06-30
3

Re: Getting two lines of errors after installation - what can I do?

Please bear with me, I have the identical problem, and using search only led me back to this post. I have been a happy user for many years, never had a problem till now, and only due to setting up a XAMPP Server, install almost went fine, but there is that PHP issue. I have 7.2.6 installed.

I cannot import my old site, I cannot run a fresh site, even if I ignore the warning messages nothing works, I cannot create albums or add photos. As a senior I am not as fast as some of you young guys in knowing how to search or find the answers, anyone mind help me out here?

I would love to have by online albums back up and running, any help would be greatly appreciated.

My apologies for not having any success in regards to searching these forums, if there are answers there a link would be awesome.

Offline

 

#4 2018-07-03 12:29:26

Razer2k
Member
2018-06-26
2

Re: Getting two lines of errors after installation - what can I do?

executive wrote:

you can read one of the dozens of topics that already exist about the message (which is not an error)

Sorry for not being as good with this problems as it seems you are.

I have looked through the forum but wasn't able to spot a thread related to my problem.

If there are dozens related to this you could maybe point me to the right one?

Offline

 

#5 2018-07-03 20:55:33

executive
Member
2017-08-16
1214

Re: Getting two lines of errors after installation - what can I do?

Please explain how you are searching because I find that very strange.

If I simply search for "function deprecated" it comes up with several topics.

The one titled "[resolved] PHP errors on a fresh installed piwigo 2.9.3" looks like a good choice.

Offline

 

#6 2018-07-04 02:02:29

samwilson
Member
Fremantle, Western Australia
2014-02-06
42

Re: Getting two lines of errors after installation - what can I do?

The main issue here is that Piwigo is not yet ready for use with PHP 7.2. There is some work on making it compatible: https://github.com/Piwigo/Piwigo/pull/834 — you could check that your errors are taken into account there.

In the meantime, are you able to use PHP 7.0? You could also just turn off deprecation warnings (which shouldn't be on anyway in producion).

Last edited by samwilson (2018-07-04 02:27:43)

Offline

 

#7 2018-07-04 16:29:31

flop25
Piwigo Team
2006-07-06
7037

Re: Getting two lines of errors after installation - what can I do?

all of those are just messages that should be hidden in production website
the only compatibility issue I've seen is with the Community plugin


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2018-07-05 01:27:56

olfart
Member
2018-06-30
3

Re: Getting two lines of errors after installation - what can I do?

Thanks guys, that that did the trick for me, as for what I searched was the entire string

"Deprecated: Function create_function() is deprecated in /var/dirs/piwigo/include/functions.inc.php on line 2165" I did that to avoid getting pages of information unrelated to my problem.

All good now thanks. I fixed it in the php.ini by turning off the errors.

Offline

 

#9 2018-07-05 19:50:21

executive
Member
2017-08-16
1214

Re: Getting two lines of errors after installation - what can I do?

>  I did that to avoid getting pages of information unrelated to my problem.

When your search returns zilch, you need to widen it. ie include less terms.

Offline

 

Board footer

Powered by FluxBB

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