Announcement

#1 2022-07-02 16:25:55

japierce1025
Member
2022-07-02
2

Fatal error: Undefined function get_root_url()

Greetings,

I get the following message sometimes (sometimes I am able to get into the Piwigo user side):

Fatal error: Uncaught Error: Call to undefined function get_root_url() in /home/kgchost/kennedygrandcanyon.com/photos/include/functions_url.inc.php:116 Stack trace: #0 /home/kgchost/kennedygrandcanyon.com/photos/include/functions_url.inc.php(842): make_index_url() #1 /home/kgchost/kennedygrandcanyon.com/photos/include/section_init.inc.php(577): get_gallery_home_url() #2 /home/kgchost/kennedygrandcanyon.com/photos/index.php(12): include('/home/kgchost/k...') #3 {main} thrown in /home/kgchost/kennedygrandcanyon.com/photos/include/functions_url.inc.php on line 116


I first found it when following the link to do the latest update to Piwigo (going to 12.3.0). Sometimes it loads, sometimes I am able to log-in to the update page, then it only gets the error message. Other Piwigo databases work fine (in other Dreamhost sites). At the time of the error Dreamhost was having problems with their main system, don't think it's related, but wanted to mention it anyway.

Piwigo URL: https://kennedygrandcanyon.com/photos

Offline

 

#2 2022-07-03 00:42:04

erAck
Only trying to help
2015-09-06
2023

Re: Fatal error: Undefined function get_root_url()

Your hosting is broken. function get_root_url() is the very first function and code in include/functions_url.inc.php the same file that the stack trace indicates make_index_url() was trying to call it from.


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

Offline

 

#3 2022-07-06 15:45:47

japierce1025
Member
2022-07-02
2

Re: Fatal error: Undefined function get_root_url()

That was the key ... My host (Dreamhost) downgraded my sites PHP to 7.3 (from 7.4) and it now works.

THANK YOU!!

Does anyone know if it is safe to upgrade back to PHP 8.0? (Dreamhost indicates that 8.0 is the current preferred PHP version.)

Offline

 

#4 2022-07-07 01:30:05

erAck
Only trying to help
2015-09-06
2023

Re: Fatal error: Undefined function get_root_url()

Piwigo 12.3 works fine with PHP 7.4, if it worked for you only after downgrading to 7.3 that's by accident and something else was broken. Note that PHP 7.3 is EOL and doesn't receive security updates anymore since December already, see https://www.php.net/eol.php .
No, Piwigo is still not fully ready for PHP 8.0.


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

Offline

 

Board footer

Powered by FluxBB

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