Post by MEMENTO » Sat Jan 19, 2019 2:06 am

I cannot seem to figured it out why I keep getting this error. I all ready tried everything.
Link: https://www.mementodesign.be/m-shop/
Error: Fatal error: Uncaught Error: Call to a member function link() on null in /customers/f/f/a/mementodesign.be/httpd.www/m-shop/admin/controller/error/not_found.php:12 Stack trace: #0 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/engine/action.php(79): ControllerErrorNotFound->index() #1 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/engine/router.php(67): Action->execute(Object(Registry)) #2 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/engine/router.php(56): Router->execute(Object(Action)) #3 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/framework.php(165): Router->dispatch(Object(Action), Object(Action)) #4 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/startup.php(104): require_once('/customers/f/f/...') #5 /customers/f/f/a/mementodesign.be/httpd.www/m-shop/index.php(19): start('catalog') #6 {main} thrown in /customers/f/f/a/mementodesign.be/httpd.www/m-shop/admin/controller/error/not_found.php on line 12

The backend seems to work fine.
It is a fresh install from the Opencart version 3.0.3.1.

I followed the installation as on the video. Can somebody tell me what maybe doing wrong?
Thank you!
Regards Els

Newbie

Posts

Joined
Sat Jan 19, 2019 2:01 am

Post by straightlight » Mon Jan 21, 2019 12:35 am

Ensure your server relative paths are properly configured from your config.php and admin/config.php files.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by MEMENTO » Mon Jan 21, 2019 6:03 pm

Thank you for your reply! I already checked it multiple times but I can't see anything wrong or different in the config.php files.
Is there anything else I can check?
Thank you

config.php in root folder:

<?php
// HTTP
define('HTTP_SERVER', 'https://www.mementodesign.be/m-shop/');

// HTTPS
define('HTTPS_SERVER', 'https://www.mementodesign.be/m-shop/');

// DIR
define('DIR_APPLICATION', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/admin/');
define('DIR_SYSTEM', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/');
define('DIR_IMAGE', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/image/');


define('DIR_STORAGE','/customers/f/f/a/mementodesign.be/httpd.www/m-shop/storage/');
define('DIR_CATALOG', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');


// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'mementodesign.be.mysql');
define('DB_USERNAME', 'mementodesign_be_shop');
define('DB_PASSWORD', 'memento10');
define('DB_DATABASE', 'mementodesign_be_shop');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');


// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');



config.php in admin:

<?php
// HTTP
define('HTTP_SERVER', 'https://www.mementodesign.be/m-shop/admin/');
define('HTTP_CATALOG', 'https://www.mementodesign.be/m-shop/');

// HTTPS
define('HTTPS_SERVER', 'https://www.mementodesign.be/m-shop/admin/');
define('HTTPS_CATALOG', 'https://www.mementodesign.be/m-shop/');

// DIR
define('DIR_APPLICATION', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/admin/');
define('DIR_SYSTEM', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/system/');
define('DIR_IMAGE', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/image/');

define('DIR_STORAGE', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/storage/');
define('DIR_CATALOG', '/customers/f/f/a/mementodesign.be/httpd.www/m-shop/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'mementodesign.be.mysql');
define('DB_USERNAME', 'mementodesign_be_shop');
define('DB_PASSWORD', 'memento10');
define('DB_DATABASE', 'mementodesign_be_shop');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');

Newbie

Posts

Joined
Sat Jan 19, 2019 2:01 am

Post by MEMENTO » Mon Jan 21, 2019 6:26 pm

This is the .htaccess files: (maybe there is an issue here?)

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: https://www.opencart.com

Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines:
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Newbie

Posts

Joined
Sat Jan 19, 2019 2:01 am

Post by MEMENTO » Fri Jan 25, 2019 8:29 pm

It is solved by doing a fresh install for a couple of times, still don't know what was wrong. Thank you for your reply's!

Newbie

Posts

Joined
Sat Jan 19, 2019 2:01 am
Who is online

Users browsing this forum: No registered users and 115 guests