03-21-2016, 08:19 PM
@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></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
Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 332
<pre></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></pre>
Warning: array_merge(): Argument #2 is not an array in C:\xampp\htdocs\xxx\admin_pages.php on line 17
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\slu\admin_pages.php on line 26
<pre></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
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];
}
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;
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;
}
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;
}
}
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