Post by Pchibuike » Sun Aug 27, 2017 12:19 am

This error message "Notice: Undefined index: filename in /home/aim/public_html/admin/index.php on line 125" is showing in my admin realm now at www.aimeagles.com/admin.

If you people can't help or don't know what to do to help, please tell me what to correct in the index.php below:



<?php
// Version
define('VERSION', '1.5.6.1');

// Configuration
if (file_exists('config.php')) {
require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
header('Location: ../install/index.php');
exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

// Application Classes
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM . 'library/user.php');
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM . 'library/length.php');

// Registry
$registry = new Registry();

// Loader
$loader = new Loader($registry);
$registry->set('load', $loader);

// Config
$config = new Config();
$registry->set('config', $config);

// Database
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
$registry->set('db', $db);

// Settings
$query = $db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '0'");

foreach ($query->rows as $setting) {
if (!$setting['serialized']) {
$config->set($setting['key'], $setting['value']);
} else {
$config->set($setting['key'], unserialize($setting['value']));
}
}

// Url
$url = new Url(HTTP_SERVER, $config->get('config_secure') ? HTTPS_SERVER : HTTP_SERVER);
$registry->set('url', $url);

// Log
$log = new Log($config->get('config_error_filename'));
$registry->set('log', $log);

function error_handler($errno, $errstr, $errfile, $errline) {
global $log, $config;

switch ($errno) {
case E_NOTICE:
case E_USER_NOTICE:
$error = 'Notice';
break;
case E_WARNING:
case E_USER_WARNING:
$error = 'Warning';
break;
case E_ERROR:
case E_USER_ERROR:
$error = 'Fatal Error';
break;
default:
$error = 'Unknown';
break;
}

if ($config->get('config_error_display')) {
echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';
}

if ($config->get('config_error_log')) {
$log->write('PHP ' . $error . ': ' . $errstr . ' in ' . $errfile . ' on line ' . $errline);
}

return true;
}

// Error Handler
set_error_handler('error_handler');

// Request
$request = new Request('file');
$registry->set('request', $request);

// Response
$response = new Response('file');
$response->addHeader('Content-Type: text/html; charset=utf-8');
$registry->set('response', $response);

// Cache
$cache = new Cache('file');
$registry->set('cache', $cache);

// Session
$session = new Session('file');
$registry->set('session', $session);

// Language
$languages = array('file');

$query = $db->query("SELECT * FROM `" . DB_PREFIX . "language`");

foreach ($query->rows as $result) {
$languages[$result['code']] = $result;
}

$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);

// Language
$language = new Language($languages[$config->get('config_admin_language')]['directory']);
$language = new Language('english');
$language->load($languages[$config->get('config_admin_language')]['filename']);
$language->load('english');
$registry->set('language', $language);

// Document
$registry->set('document', new Document('file'));

// Currency
$registry->set('currency', new Currency($registry));

// Weight
$registry->set('weight', new Weight($registry));

// Length
$registry->set('length', new Length($registry));

// User
$registry->set('user', new User($registry));

//OpenBay Pro
$registry->set('openbay', new Openbay($registry));

// Front Controller
$controller = new Front($registry);

// Login
$controller->addPreAction(new Action('common/home/login'));

// Permission
$controller->addPreAction(new Action('common/home/permission'));

// Router
if (isset($request->get['route'])) {
$action = new Action($request->get['route']);
} else {
$action = new Action('common/home');
}

//program stop from here

// Output
$response->output();
?>

This is the admin index.php that i erroneously uploaded into my www.aimeagles.com/cpanel under admin and this index.php file automatically replaced my original follow come pavotheme admin index.php in my cpanel.

I lost access to my admin platform at www.aimeagles.com/admin immediately after uploading this index.php file from my localhost/estore admin folder into my www.aimeagles.com/cpanel under admin folder.

So, if you people can also provide me with admin index.php file for opencart pavotheme version 2.0.3.1, i will imperatively upload it in my cpanel (root folder) under admin in order to undo what i did and automatically regain access to my admin platform.

Thanks a lot

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by yodapt » Sun Aug 27, 2017 1:43 am

Did you changed something in the last few days?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by Pchibuike » Sun Aug 27, 2017 3:01 am

Lets say, i erroneously deleted the original index.php under admin in cpanel and inserted another admin index.php file from a lower version 1.5.x which automatically replaced the follow come index.php file version 2.0.3.1.

My mistake was not copying out the original index.php file into a notepad outside my root folder before replacing it with a lower version, after clearing caches by putting 'file' into $cache = new cache (), the current error started showing.

So, if i can see someone who uses pavotheme opencart version 2.0.3.1 to copy out their admin index.php for me, i will greatly appreciate it

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by IP_CAM » Sun Aug 27, 2017 8:16 pm

Well Pavo-Themes created many different OC-Theme-Extensions, but
I you bought a 'legal' Pavo Theme, you should be able to get this one file from
Pavo-Themes, if you already destroyed the Download, for what reason ever.
http://www.pavothemes.com/support/helpdesk.html

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

Post by Pchibuike » Sun Aug 27, 2017 9:38 pm

That is where the problem is because it's my hosting company that bought it and the company morrowless can't help me perhaps they no longer have the pavotheme with them and i have been sending mails to pavotheme@gmail.com but no head way.

It took me 3 good months to bring www.aimeagles.com to the level it is now and can't afford to start all over again.

All these menace started after uninstalling square.com payment plugin.

Please, anyone that uses pavotheme opencart version 2.0.3.1 should please help me with their admin index.php file (just copy it out and give me because it will solve many things for me).

Thanks a lot

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by Pchibuike » Sun Aug 27, 2017 10:08 pm

Even if the pavotheme admin index.php file you have is not the same thing but the same version 2.0.3.1, it will help me know what to remove/correct because i can still remember somethings not included in the one i erroneously replaced but forgot somethings excluded underneath (admin index.php file footer).

Anyone that can help, should please help me out.

Thanks

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by IP_CAM » Mon Aug 28, 2017 11:55 am

sorry, but if you bought a Pavo-Theme, and you have no single backup-Copy...
but then, you seem to have more than just one problem, sorry ::)
And you never even mentioned, what Theme it is, since Pavo-Theme is known to
have an entire range of themes. But so, you're not making it easy for anyone,
even trying to care about ... :'(
Ernie
---
http://www.pavothemes.com/opencart-themes.html

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

Post by Pchibuike » Mon Aug 28, 2017 2:01 pm

My pavotheme store name is wine Store/coffee shop and admin index.php file from theme showing in this link http://www.pavothemes.com/opencart-them ... eshop.html might be of help.

Had it been i bought the template by myself, I'd still have a copy of it.

That link shows exactly how my site look like but it come with a price and the only thing i want is just admin index.php, how wish they can sale the index.php to me for $2

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by Pchibuike » Mon Aug 28, 2017 2:10 pm

Now i remember, my pavotheme store name is "style shop" and am using the default templates.

Anyone that has the admin index.php file should please help me.

Thanks

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by IP_CAM » Mon Aug 28, 2017 8:35 pm

http://demopavothemes.com/pav_styleshop ... /index.php
name: demo - password: demo

Well, by checking the ERROR LOG in that DEMO Admin Section, I find it FULL of errors.
This is typically PAVO, as I have it experienced for some time already.
And the PAV StyleShop Demo at least uses NO Custom Admin index.php File.
But your Site is full of weird Code anyway, and it takes AGES, even to load it.

Disable ALL your ADMIN-related VqMod Extensions, and use the default Admin index.php
File from a DEFAULT OC Admin Version. That's all I can say.
Good Luck
Ernie

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

Post by Pchibuike » Mon Aug 28, 2017 9:51 pm

Thanks a lot, but am new in web development and morrowless don't know how to do what you said: "Disable ALL your ADMIN-related VqMod Extensions, and use the default Admin index.php
File from a DEFAULT OC Admin Version. That's all I can say."; how and where can i disable my admin VqMod extensions, get a default OC admin version and where & how can i enable (use) my default admin index.php and what will be the outcome of my site i.e how will my site look like thereafter???


Thanks once again

Newbie

Posts

Joined
Thu Apr 20, 2017 2:29 pm

Post by IP_CAM » Tue Aug 29, 2017 6:12 am

Well, VqMods can be disabled by FTP-Client Use , by either removing them from the
SHOP-DIRECTORY/vqmod/xml/... Subdirectory
or then, disabling them, by Example, to make:
full_text_cart_order_confirmation.xml
look like:
full_text_cart_order_confirmation.xml_
---
EXEPT FOR the:
vqmod_opencart.xml
wich has to stay in it's Place, as it exists, regardless of,
if you remove all other VqMod's or just DISABLE them by adding
the _ to the .xml Ending, to make it look like .xml_
----
Depending on the OC-2 Version you use, in the SYSTEM/...
Subdirectory, either a MODIFICATION/... or STORAGE/MODIFICATION/...
Directory exists, remove everything on Files and Directories, exept for the
index.html File.

The CACHE/... Directory also exists in this same Section, it also should be cleaned
out off content as well.
---
Then comes the Database, where the MODIFICATION TABLE has
to be cleaned out of content, by use of the Server ADMIN MyPHP Admin Database Tool.
---
It's all on the image, so, don't come back and ask on how to do it ... ;)
Then, your shop should at least work with the DEFAULT Theme on the Front Side,
and with Default Admin Configuration, exept for possibly also activated MODULES,
likely still doing their JOB. At least, as long as they are not 'connected' to some NO LONGER
existing VqMod/OcMod Functions.
Good Luck ;)
Ernie
---
Image

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: Baidu [Spider] and 65 guests