The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All pages removed from database
#1
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?
  Reply
#2
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.
  Reply
#3
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.
  Reply
#4
Can you paste your z_us_root?
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)