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 -->
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
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:
Call to undefined function set_cat_status()to Call to undefined function set_cat_status()