Pages: 1
Hello,
I just installed Piwigo on my managed webspace and directly getting two PHP errors:
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
you can read one of the dozens of topics that already exist about the message (which is not an error)
Offline
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
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
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
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
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
Offline
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
> 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
Pages: 1