Every time I open the page admin_pages.php all pages in the userspice database are getting removed. What might be the reason for this?
Your files must not be in the place they are expected to be...every time you open admin_pages.php it removes pages that no longer exist, and adds pages that do exist, within the directories defined in z_us_root.
My pages were in the correct place, but I got an error in this methode in us_helpers.php
function getPathPhpFiles($absRoot,$urlRoot,$fullPath) {
$directory = $absRoot.$urlRoot.$fullPath;
//bold ($directory);
$pages = glob($directory . "*.php");
foreach ($pages as $page){
$fixed = str_replace($absRoot.$urlRoot,'',$page);
$row[$fixed] = $fixed;
}
return $row;
}
I had to add an $row = array(); and that solved it.
function getPathPhpFiles($absRoot,$urlRoot,$fullPath) {
$directory = $absRoot.$urlRoot.$fullPath;
//bold ($directory);
$pages = glob($directory . "*.php");
$row = array();
foreach ($pages as $page){
$fixed = str_replace($absRoot.$urlRoot,'',$page);
$row[$fixed] = $fixed;
}
return $row;
}
Thank you nevertheless.
Can you paste your z_us_root?