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
Fetch data from DB
#25
@mudmin @brian

i have fallen into an issue
to be short ..i am developing an application over user spice ( i am copying us codes to my desired folder structure ) using a bootstrap admin panel template and changing the looks of us panel by copying us codes to that bootstrap template . now the issue is as follows

while entering any page after admin login say admin.php , admin_pages.php,admin_permission.php i am getting following errors. for your understanding i am pasting the code of that pointing line below every error

Notice: Undefined offset: 0 in C:\xampp\htdocs\slu\classes\DB.php on line 133
<pre>
Code:
public function first(){
        return $this->results()[0];
    }
</pre>


Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Code:
$pageDetails = array( 'id' =>$results->id, 'page' => $results->page, 'private' =>$results->private);

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 332
<pre>
Code:
$pageID = $results->id;
</pre>


and the following error only on admin_pages.php

Notice: Undefined variable: row in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 169

<pre>
Code:
$row[$fixed] = $fixed;
}
return $row;
}
</pre>


Warning: array_merge(): Argument #2 is not an array in C:\xampp\htdocs\xxx\admin_pages.php on line 17

Code:
$pages = array_merge($rootpages, $uspages); //feel free to add more folders

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\slu\admin_pages.php on line 26

<pre>
Code:
foreach ($pages as $page) {
    $page_exists = false;
    foreach ($dbpages as $k => $dbpage) {
        if ($dbpage->page === $page) {
            unset($dbpages[$k]);
            $page_exists = true;
            break;
        }
    }
    if (!$page_exists) {
        $creations[] = $page;
    }
}
</pre>


and one more thing is that in admin_pages no pages are being listed however i added all the includes you mentioned in documentation .

Kindly help me please


  Reply


Messages In This Thread
Fetch data from DB - by jjmmrg - 03-13-2016, 01:51 PM
Fetch data from DB - by jjmmrg - 03-14-2016, 02:51 AM
Fetch data from DB - by jjmmrg - 03-14-2016, 03:15 AM
Fetch data from DB - by jjmmrg - 03-14-2016, 04:31 AM
Fetch data from DB - by brian - 03-14-2016, 01:10 PM
Fetch data from DB - by mudmin - 03-14-2016, 02:05 PM
Fetch data from DB - by brian - 03-14-2016, 02:12 PM
Fetch data from DB - by jjmmrg - 03-15-2016, 03:16 AM
Fetch data from DB - by jjmmrg - 03-15-2016, 03:20 AM
Fetch data from DB - by jjmmrg - 03-15-2016, 04:37 AM
Fetch data from DB - by brian - 03-15-2016, 01:19 PM
Fetch data from DB - by jjmmrg - 03-16-2016, 03:17 AM
Fetch data from DB - by jjmmrg - 03-16-2016, 09:06 AM
Fetch data from DB - by brian - 03-16-2016, 12:21 PM
Fetch data from DB - by astropos - 03-16-2016, 04:25 PM
Fetch data from DB - by mudmin - 03-17-2016, 12:03 AM
Fetch data from DB - by brian - 03-17-2016, 03:07 PM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:54 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:55 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:56 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 03:31 AM
Fetch data from DB - by mudmin - 03-18-2016, 12:54 PM
Fetch data from DB - by jjmmrg - 03-19-2016, 03:51 AM
Fetch data from DB - by mudmin - 03-19-2016, 04:41 PM
Fetch data from DB - by jjmmrg - 03-21-2016, 08:19 PM
Fetch data from DB - by mudmin - 03-21-2016, 10:54 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 02:56 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 02:58 AM
Fetch data from DB - by mudmin - 03-22-2016, 04:41 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 04:43 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 11:35 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 11:58 AM
Fetch data from DB - by mudmin - 03-22-2016, 01:49 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 01:56 PM
Fetch data from DB - by mudmin - 03-22-2016, 02:20 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 03:44 PM
Fetch data from DB - by brian - 03-22-2016, 04:02 PM
Fetch data from DB - by brian - 03-22-2016, 04:33 PM
Fetch data from DB - by brian - 03-22-2016, 04:50 PM
Fetch data from DB - by mudmin - 03-22-2016, 05:19 PM

Forum Jump:


Users browsing this thread: 28 Guest(s)