I recently upgraded my store from version 3.0.2.0 to the latest 3.0.3.0, without overwriting the config.php and admin/config.php files. Now, when I log in to my admin area, it shows a 404 page not found error.
Before the upgrade, mails were not been sent out to customers (upon registration) and also an admin (when an order is placed). I also found out that if I click on the Modification menu, under Extensions, it returns a 404 page not found error, likewise when I try to update some settings via System>>Settings. So, I felt upgrading to the latest version would resolve all the issues.
But now, I can't even view the admin page. It is returning a 404 error.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I have checked through the storage folder: storage/logs/error.log and there are a lot of errors I see there:
Code: Select all
2019-05-03 10:57:47 - PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/****/storage/modification/admin/controller/common/dashboard.php on line 12
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I downgraded to version 7.0, now I can log in to the store admin.
But the former problem is still there:
- When I click on Extensions >> Modification, it returns a 404 error page
- When I click on System >> Settings, and save, it returns a 404 error page
Check your error logs!What can I do??
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
public_html/error.log is empty.
public_html/admin/error.log is also empty.
Where else can I check?
This post already mentions where else to check: viewtopic.php?f=199&t=211540#p754061Sammyskills wrote: ↑Fri May 03, 2019 9:53 pmWhere exactly?
public_html/error.log is empty.
public_html/admin/error.log is also empty.
Where else can I check?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
So, I decided to do a fresh install in a sub-directory. After the installation, when I click on System >> Settings and click on the "Save" button, it returns a 404 page not found error.
I have PHP 7 installed in my server.
Please, is there something my server is missing that could be causing this error?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
routine, not yet made work with PHP v.7.2x in some Versions.
I had it once in this (model/module/module.php) File:
Code: Select all
foreach($modules as $module){
foreach($module as $array){
// if(count($array[0]) > 0 && is_array($array)){
if (is_array($array) && count($array[0]) > 0) {
for($i = 0; $i<count($array[0]); $i++){
if( isset($array[0][$i]['layout_id']) ){
$ms[$array[0][$i]['layout_id']][] = array("name"=> $module['name'], "position" => $array[0][$i]['position']);
}
}
}
}
}
https://php.net/manual/en/function.count.php
viewtopic.php?t=210541
https://themeforest.net/item/journal-ad ... s?page=462
https://stackoverflow.com/questions/523 ... t-implemen
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.
Code: Select all
foreach($modules as $module){
foreach($module as $array){
// if(count($array[0]) > 0 && is_array($array)){
if (is_array($array) && count($array[0]) > 0) {
for($i = 0; $i<count($array[0]); $i++){
if( isset($array[0][$i]['layout_id']) ){
$ms[$array[0][$i]['layout_id']][] = array("name"=> $module['name'], "position" => $array[0][$i]['position']);
}
}
}
}
}
Code: Select all
$ms = array();
foreach($modules as $module) {
foreach($module as $array) {
if (!empty($array[0]) && is_array($array[0])) {
foreach ($array[0] as $module_value) {
if (!empty($module_value['layout_id'])) {
$ms[$module_value['layout_id']][] = array('name' => $module['name'],
'position' => $module_value['position'],
);
}
}
}
}
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
resides in the Admin Module Section. But going back to Home, that's, what I got, in the
last (new) code line left curly '}' of the File.
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
part of PEKU's OC2 Theme to 1.5.6.x Mod and EDGE Version, and it
failed to work with PHP-7.x, as it came by PEKU default, that's, why
I know, that it exists ...
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
after moving up in PHP Version. And I at least found a Solution.
Colorblind Coders have to take n'use, what exists, regardless of, if
it comes in light-brown or dark-green Color, as long as it works ...
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.
Code: Select all
2020-05-24 5:19:32 - PHP Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/system/library/template/Twig/Extension/Core.php on line 1266
Code: Select all
// add multibyte extensions if possible
if (function_exists('mb_get_info')) {
/**
* Returns the length of a variable.
*
* @param Twig_Environment $env A Twig_Environment instance
* @param mixed $thing A variable
*
* @return int The length of the value
*/
function twig_length_filter(Twig_Environment $env, $thing)
{
return is_scalar($thing) ? mb_strlen($thing, $env->getCharset()) : count($thing);
}
Regards,
Night
Users browsing this forum: No registered users and 72 guests