Fatal error: Uncaught Error: Call to undefined function userprefs_get_param() - themes.class.php:423 #1532

Closed
opened 2026-10-05 00:47:16 +02:00 by adam · 12 comments
Owner

I got this error after upgrade version 13

Fatal error: Uncaught Error: Call to undefined function userprefs_get_param() in /admin/include/themes.class.php:423 Stack trace: #0 /admin/include/themes.class.php(50): themes->get_fs_themes() #1 /admin/include/updates.class.php(38): themes->__construct() #2 /admin/updates_pwg.php(29): updates->__construct() #3 /admin/updates.php(28): include('/var/www/client...') #4 //admin.php(320): include('/var/www/client...') #5 {main} thrown in /admin/include/themes.class.php on line 423

I got this error after upgrade version 13 Fatal error: Uncaught Error: Call to undefined function userprefs_get_param() in /admin/include/themes.class.php:423 Stack trace: #0 /admin/include/themes.class.php(50): themes->get_fs_themes() #1 /admin/include/updates.class.php(38): themes->__construct() #2 /admin/updates_pwg.php(29): updates->__construct() #3 /admin/updates.php(28): include('/var/www/client...') #4 //admin.php(320): include('/var/www/client...') #5 {main} thrown in /admin/include/themes.class.php on line 423 <!-- github-sync-id:1407326931 -->
adam closed this issue 2026-10-05 00:47:16 +02:00
Author
Owner

i have the same problem by executing upgrade ( https://ip:port/admin.php?page=updates )
it will back to old version (12.3.0 docker version) after replace old admin/include/themes.class.php.

i have the same problem by executing upgrade ( https://ip:port/admin.php?page=updates ) it will back to old version (12.3.0 docker version) after replace old admin/include/themes.class.php. <!-- github-comment-id:1278396228 -->
Author
Owner

Curious issue. Don't you find the function userprefs_get_param in file include/functions_user.inc.php ?

Curious issue. Don't you find the function `userprefs_get_param` in file include/functions_user.inc.php ? <!-- github-comment-id:1278689021 -->
Author
Owner

my env:
docker piwigo (https://hub.docker.com/r/linuxserver/piwigo) 12.3.0

  1. no "include/functions_user.inc.php" after upgrade
    i think it's not finish update new version files

appear "gateway timeout" after auto upgrade for a while.
image

then show nothing
when fresh page (F5)

image

my env: docker piwigo (https://hub.docker.com/r/linuxserver/piwigo) 12.3.0 1. no "include/functions_user.inc.php" after upgrade i think it's not finish update new version files 2. appear "gateway timeout" after auto upgrade for a while. ![image](https://user-images.githubusercontent.com/5213198/195811698-fea20980-a649-46cb-b16d-2b3137d52902.png) then show nothing when fresh page (F5) ![image](https://user-images.githubusercontent.com/5213198/195811856-a5aa5c35-e84a-43d6-bbf6-7804bcc6ede6.png) <!-- github-comment-id:1278738246 -->
Author
Owner

function userprefs_get_param was introduced in Piwigo 13. You should not have it on a Piwigo 12.3.0. You seem to have an "hybrid" environment mixing files from Piwigo 13.0.0 and Piwigo 12.3.0.

function `userprefs_get_param` was introduced in Piwigo 13. You should not have it on a Piwigo 12.3.0. You seem to have an "hybrid" environment mixing files from Piwigo 13.0.0 and Piwigo 12.3.0. <!-- github-comment-id:1278740690 -->
Author
Owner

thanks.
maybe i should restore to 12.3.0 and try again

try many times , alway "504 Gateway Time-out"
i think its none official docker images problem,
i want to try another way to upgrade ( https://piwigo.org/guides/update/manual ) , but it is old version .

thanks. maybe i should restore to 12.3.0 and try again -- try many times , alway "504 Gateway Time-out" i think its none official docker images problem, i want to try another way to upgrade ( https://piwigo.org/guides/update/manual ) , but it is old version . <!-- github-comment-id:1278746773 -->
Author
Owner

I did the update through piwigo, due to the announcement of the new version 13. I got the error.
Afterwards, I downloaded version 13 from github and ftp it, and the error continues.
The update section in piwigo says I have 12.3.0, but if I try to update it says I'm up to date.
I need to check this: Can't find the userprefs_get_param function in the include/functions_user.inc.php file?

I did the update through piwigo, due to the announcement of the new version 13. I got the error. Afterwards, I downloaded version 13 from github and ftp it, and the error continues. The update section in piwigo says I have 12.3.0, but if I try to update it says I'm up to date. I need to check this: Can't find the userprefs_get_param function in the include/functions_user.inc.php file? <!-- github-comment-id:1278958297 -->
Author
Owner

Curious issue. Don't you find the function userprefs_get_param in file include/functions_user.inc.php ?

The function is there, line 1854. Then seems that this isn't the problem.

> Curious issue. Don't you find the function `userprefs_get_param` in file include/functions_user.inc.php ? The function is there, line 1854. Then seems that this isn't the problem. <!-- github-comment-id:1279373474 -->
Author
Owner

If the problem is related to a specific architecture in Docker, I'm afraid we can't do much about it. Unless someone says "I have this problem and I'm not using Docker".

If the problem is related to a specific architecture in Docker, I'm afraid we can't do much about it. Unless someone says "I have this problem and I'm not using Docker". <!-- github-comment-id:1280665709 -->
Author
Owner

If the problem is related to a specific architecture in Docker, I'm afraid we can't do much about it. Unless someone says "I have this problem and I'm not using Docker".

I'm not using Docker
Apache and PHP 7.4

> If the problem is related to a specific architecture in Docker, I'm afraid we can't do much about it. Unless someone says "I have this problem and I'm not using Docker". I'm not using Docker Apache and PHP 7.4 <!-- github-comment-id:1280712243 -->
Author
Owner

I have PHP versione 7.1.33

I have PHP versione 7.1.33 <!-- github-comment-id:1282635364 -->
Author
Owner

i I've resolved myself and upgrade success delete the typetages tables by using rm command when i find php error said that Table 'piwigo.piwigo_typetags' doesn't exist in engine .
image
image
i my docker piwigo case , i have "piwigo_typetags" old format mysql table and doesn't work in 12.3.0 , and affect upgrade procedure.

i I've resolved myself and upgrade success delete the typetages tables by using rm command when i find php error said that **Table 'piwigo.piwigo_typetags' doesn't exist in engine** . ![image](https://user-images.githubusercontent.com/5213198/197092219-4a61638a-5850-4c1b-bff2-f2aab9dba4bc.png) ![image](https://user-images.githubusercontent.com/5213198/197092250-b1e15224-22e9-4d5b-a526-4888c04e00f9.png) i my docker piwigo case , i have "piwigo_typetags" old format mysql table and doesn't work in 12.3.0 , and affect upgrade procedure. <!-- github-comment-id:1286354708 -->
Author
Owner

The problem has disappeared.
Possibly in my case it was something related to the php-fpm cache.
Thanks for everything.

The problem has disappeared. Possibly in my case it was something related to the php-fpm cache. Thanks for everything. <!-- github-comment-id:1286625098 -->
adam changed title from Fatal error: Uncaught Error: Call to undefined function userprefs_get_param() - themes.class.php:423 to Fatal error: Uncaught Error: Call to undefined function userprefs_get_param() - themes.class.php:423 2026-10-27 11:24:22 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1532