Hello there !
So I found a new issue when testing/experimenting with Tastyigniter
I have started a fresh installation on a remote debian server (GCP) with demo data.
I moved it now from the GCP instance to my local machine running on XAMPP.
I replaced the site url in the database, reconfigured the files in config directory, but when I try to access the homepage I face this error:
ErrorException (E_NOTICE)
Trying to get property 'permalink' of non-object
`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"
Environment & details:
GET Data empty
POST Data empty
Files empty
Cookies
uncode_privacy
array:1 [▶]
rs6_overview_pagination
"all"
PHPSESSID
"3lu67vgmvugoarfh8do821otc0"
rs6_library_pagination
"all"
trx_addons_is_retina
"0"
cookielawinfo-checkbox-non-necessary
"yes"
viewed_cookie_policy
"yes"
wordpress_test_cookie
"WP Cookie check"
undefined
"undefined"
ti_displayListFilter
"undefined"
complianceCookie
"on"
ti_activeFormTabs
"{"widget.Settings-form-form-general-edit":"#primarytab-2","widget.Settings-form-form-setup-edit":"#primarytab-5","widget.Locations-form-edit":"#primarytab-1","w ▶"
remember_admin_info
"eyJpdiI6Im83TXNBV1pESU54eTllXC9VZTZwbFNBPT0iLCJ2YWx1ZSI6Iks2UFFoeUVlZzd5Q1hoTXRnbFdVTEJUejZ2WmV1M29XMlFmdTdcL2FCYTM1MTBSZGZmK1RcL1l0VGlqRDdqY2dLUzlSUWk5Nk0xdFAw ▶"
tastyigniter_session
"eyJpdiI6IjFSXC9JRjQwNXJlbGx0SmxrbXNxNGdRPT0iLCJ2YWx1ZSI6IkZKVW01TlVcL29mRDNBbm9IR3ZIKzRnd1ZBTEc0aWVmMEg5U2l4ZE1XaXhheVpmcVVqMER4NUVUTEJ6Mm5DWlBYIiwibWFjIjoiYzMz ▶"
Session empty
Server/Request Data
MIBDIRS
"D:/Freelance Work/Server/php/extras/mibs"
MYSQL_HOME
"\xampp\mysql\bin"
OPENSSL_CONF
"D:/Freelance Work/Server/apache/bin/openssl.cnf"
PHP_PEAR_SYSCONF_DIR
"\xampp\php"
PHPRC
"\xampp\php"
TMP
"\xampp\tmp"
HTTP_HOST
"localhost"
HTTP_CONNECTION
"keep-alive"
HTTP_UPGRADE_INSECURE_REQUESTS
"1"
HTTP_DNT
"1"
HTTP_USER_AGENT
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"
HTTP_SEC_FETCH_DEST
"document"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9"
HTTP_SEC_FETCH_SITE
"same-origin"
HTTP_SEC_FETCH_MODE
"navigate"
HTTP_SEC_FETCH_USER
"?1"
HTTP_REFERER
"http://localhost/askkarin/admin/dashboard"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br"
HTTP_ACCEPT_LANGUAGE
"en,de-DE;q=0.9,de;q=0.8,ru;q=0.7,pl;q=0.6,zh-CN;q=0.5,zh-TW;q=0.4,zh;q=0.3,ja;q=0.2,nb;q=0.1,sv;q=0.1"
HTTP_COOKIE
"uncode_privacy[consent_types]=%5B%5D; rs6_overview_pagination=all; PHPSESSID=3lu67vgmvugoarfh8do821otc0; rs6_library_pagination=all; trx_addons_is_retina=0; coo ▶"
PATH
"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\ ▶"
SystemRoot
"C:\Windows"
COMSPEC
"C:\Windows\system32\cmd.exe"
PATHEXT
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
WINDIR
"C:\Windows"
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.2.28 Server at localhost Port 80</address>"
SERVER_SOFTWARE
"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.2.28"
SERVER_NAME
"localhost"
SERVER_ADDR
"::1"
SERVER_PORT
"80"
REMOTE_ADDR
"::1"
DOCUMENT_ROOT
"D:/Freelance Work/Server/htdocs"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"D:/Freelance Work/Server/htdocs"
SERVER_ADMIN
"postmaster@localhost"
SCRIPT_FILENAME
"D:/Freelance Work/Server/htdocs/askkarin/index.php"
REMOTE_PORT
"58988"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/askkarin/"
SCRIPT_NAME
"/askkarin/index.php"
PHP_SELF
"/askkarin/index.php"
REQUEST_TIME_FLOAT
1585318074.785
REQUEST_TIME
1585318074
Environment Variables empty
Registered Handlers
- Whoops\Handler\PrettyPageHandler`
Note: The admin dashboard works fine.