Hello there, I already posted about this before, but unfortunately I still got no help.
I moved my tastyigniter installation from my server to my local machine for local tests.
I have setup the database and imported it, my environment meets all the requirements.
When I try to visit the main page, it give me this error:
`D:\Freelance Work\Server\htdocs\askkarin-second-version\askkarin\app\main\classes\Router.php
}
/**
* Loads the URL map - a list of page file names and corresponding URL patterns.
* The URL map can is cached. The clearUrlMap() method resets the cache. By default
* the map is updated every time when a page is saved in the back-end, or
* when the interval defined with the system.urlMapCacheTtl expires.
* @return boolean Returns true if the URL map was loaded from the cache. Otherwise returns false.
*/
protected function loadUrlMap()
{
$cacheable = Config::get('system.enableRoutesCache');
$cached = $cacheable ? Cache::get($this->getUrlMapCacheKey(), FALSE) : FALSE;
if (!$cached OR ($unSerialized = @unserialize(@base64_decode($cached))) === FALSE) {
// The item doesn't exist in the cache, create the map
$pages = $this->theme->listPages();
$map = [];
foreach ($pages as $page) {
if (!$page->permalink)
continue;
$map[] = ['file' => $page->getFileName(), 'pattern' => $page->permalink];
}
$this->urlMap = $map;
if ($cacheable) {
Cache::put(
$this->getUrlMapCacheKey(),
base64_encode(serialize($map)),
Config::get('system.urlMapCacheTtl', now()->addMinute())
);
}
return FALSE;
}
$this->urlMap = $unSerialized;
return TRUE;
Arguments
"Trying to get property 'permalink' of non-object"`
The admin panel works perfectly fine, can someone please help me with this I've been in trouble for a week with it.
Thank you.