Call to undefined function set_cat_status() #424

Closed
opened 2026-10-04 23:57:34 +02:00 by adam · 1 comment
Owner

Getting the following error when trying to set album's status via the API:
<br /> <b>Fatal error</b>: Call to undefined function set_cat_status() in <b>D:\WWW_HOME\piwigo28.com\include\ws_functions\pwg.categories.php</b> on line <b>617</b><br />

Running Piwigo 2.8.0 on Windows 7

Getting the following error when trying to set album's status via the API: `<br /> <b>Fatal error</b>: Call to undefined function set_cat_status() in <b>D:\WWW_HOME\piwigo28.com\include\ws_functions\pwg.categories.php</b> on line <b>617</b><br />` Running Piwigo 2.8.0 on Windows 7 <!-- github-sync-id:142223157 -->
adam closed this issue 2026-10-04 23:57:34 +02:00
Author
Owner

To fix this, I believe the following fragment needs to be added at the top of pwg.categories.php, just like you have in other scripts:

if (!defined('PHPWG_ROOT_PATH'))
{
  die ("Hacking attempt!");
}

include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
To fix this, I believe the following fragment needs to be added at the top of pwg.categories.php, just like you have in other scripts: ``` if (!defined('PHPWG_ROOT_PATH')) { die ("Hacking attempt!"); } include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); ``` <!-- github-comment-id:199082036 -->
adam changed title from Call to undefined function set_cat_status() to Call to undefined function set_cat_status() 2026-10-27 11:02:09 +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#424