Post by joaodias117 » Tue Apr 30, 2019 3:30 am

Recentemente eu importei os arquivos de meu site para a máquina que estou utilizando atualmente e configurei os arquivos config.php e admin/config.php e outros (utilizo XAMPP).

Porém, quando tento acessar o site ocorre o seguinte erro:
Fatal error: Uncaught Error: Call to a member function link() on null in C:\xampp1\htdocs\shop1\admin\controller\error\not_found.php:16 Stack trace: #0 C:\xampp1\htdocs\shop1\system\storage\modification\system\engine\action.php(51): ControllerErrorNotFound->index() #1 C:\xampp1\htdocs\shop1\system\engine\front.php(59): Action->execute(Object(Registry)) #2 C:\xampp1\htdocs\shop1\system\engine\front.php(52): Front->execute(Object(Action)) #3 C:\xampp1\htdocs\shop1\system\framework.php(214): Front->dispatch(Object(Action), Object(Action)) #4 C:\xampp1\htdocs\shop1\system\startup.php(124): require_once('C:\\xampp1\\htdoc...') #5 C:\xampp1\htdocs\shop1\index.php(24): start('catalog') #6 {main} thrown in C:\xampp1\htdocs\shop1\admin\controller\error\not_found.php on line 16

essa é a configuração dos arquivos config.php e admin/config.php.

config.php:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/shop1/');

// HTTPS
define('HTTPS_SERVER', 'https://localhost/shop1/');

// DIR
define('DIR_APPLICATION', '../shop1/admin/');
define('DIR_SYSTEM', '../shop1/system/');
define('DIR_IMAGE', '../shop1/image/');
define('DIR_LANGUAGE', '../shop1/admin/language/');
define('DIR_TEMPLATE', '../shop1/admin/view/template/');
define('DIR_CONFIG', '../shop1/system/config/');
define('DIR_CACHE', '../shop1/system/storage/cache/');
define('DIR_DOWNLOAD', '../shop1/system/storage/download/');
define('DIR_LOGS', '../shop1/system/storage/logs/');
define('DIR_MODIFICATION', '../shop1/system/storage/modification/');
define('DIR_UPLOAD', '../shop1/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xxxx');
define('DB_USERNAME', 'xxxx');
define('DB_PASSWORD', 'xxxx');
define('DB_DATABASE', 'xxxx');
define('DB_PORT', 'xxxx');
define('DB_PREFIX', 'xxxx');


----
admin/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/shop1/admin');
define('HTTP_CATALOG', 'http://localhost/shop1/');


// HTTPS
define('HTTPS_SERVER', 'http://localhost/shop1/');
define('HTTP_CATALOG', 'https://localhost/shop1/');

// DIR
define('DIR_APPLICATION', '../shop1/admin/');
define('DIR_SYSTEM', '../shop1/system/');
define('DIR_IMAGE', '../shop1/image/');
define('DIR_LANGUAGE', '../shop1/admin/language/');
define('DIR_TEMPLATE', '../shop1/admin/view/template/');
define('DIR_CONFIG', '../shop1/system/config/');
define('DIR_CACHE', '../shop1/system/storage/cache/');
define('DIR_DOWNLOAD', '../shop1/system/storage/download/');
define('DIR_LOGS', '../shop1/system/storage/logs/');
define('DIR_MODIFICATION', '../shop1/system/storage/modification/');
define('DIR_UPLOAD', '../shop1/system/storage/upload/');
define('DIR_CATALOG', '../shop1/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xxxx');
define('DB_USERNAME', 'xxxx');
define('DB_PASSWORD', 'xxxx');
define('DB_DATABASE', 'xxxx');
define('DB_PORT', 'xxxx');
define('DB_PREFIX', 'xxxx');

Alguém poderia me ajudar, por favor? Preciso resolver este problema o quanto antes.

Agradeço desde já.

Newbie

Posts

Joined
Sat Apr 27, 2019 2:53 am

Post by IP_CAM » Tue Apr 30, 2019 9:05 am

male:

Code: Select all

define('HTTP_SERVER', 'http://localhost/shop1/admin');
bene:

Code: Select all

define('HTTP_SERVER', 'http://localhost/shop1/admin/');
Ernesto

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 29 guests