The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
#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


Messages In This Thread
All pages removed from database - by Brandin - 09-12-2017, 08:55 AM
All pages removed from database - by c.l.f.wittmann@gmail.com - 09-12-2017, 05:23 PM
All pages removed from database - by Brandin - 09-13-2017, 09:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)