johnny_loki Posted February 8, 2017 Share Posted February 8, 2017 Hey guys, after I changed the layout of my theme (the topmenu to be exact) and ofc cleared cache I got these errors, though it seems there are no actual errors, when turn dev mode off everything seems to be working alright but it seems that the importer I am using needs it to be on, any ideas on what could be causing these to appear? the website is www.e-solution.gr and currently have dev mode off but if needed I can enable it to check it out. Thank you in advance Warning: Declaration of Link::getCategoryLink($category, $alias = NULL, $id_lang = NULL, $selected_filters = NULL, $id_shop = NULL) should be compatible with LinkCore::getCategoryLink($category, $alias = NULL, $id_lang = NULL, $selected_filters = NULL, $id_shop = NULL, $relative_protocol = false) in H:\root\home\bkarakostas-001\www\e-Solution\override\classes\Link.php on line 116Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394and this warning goes on for like 100 more times. Link to comment Share on other sites More sharing options...
rocky Posted February 9, 2017 Share Posted February 9, 2017 You have an override that is not compatible with your PrestaShop version. You should edit override/classes/Tools.php and make sure the getCategoryLink function line matches the one in classes/Tools.php. From the error message, it must have a different number of parameters. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 9, 2017 Author Share Posted February 9, 2017 It seems that in override/classes/ there is no Tool.php file though. Should I just copy the one from classes/ ? Link to comment Share on other sites More sharing options...
rocky Posted February 10, 2017 Share Posted February 10, 2017 No, I guess it's an old error message from a module you uninstalled. You can try clearing your error log and then refreshing the page to see only the error messages that are still relevant. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 10, 2017 Author Share Posted February 10, 2017 newbie question, in the root folder I can only see the error500.html where is the error_log located exactly? I searched on the internet I found just one post and says it's on the root folder Link to comment Share on other sites More sharing options...
rocky Posted February 10, 2017 Share Posted February 10, 2017 Depending on your server settings, the error_log may be in the root directory, the admin directory, or it may not even exist on your website. You may need to access it from your cPanel by clicking "Error Logs" in the "Statistics" section. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 10, 2017 Author Share Posted February 10, 2017 Cool I just asked the guys in the server as I couldn't find it either in the admin or the core folders and I am waiting for them to delete the darn thing, and I will give you an update. Thanks for you time mate Link to comment Share on other sites More sharing options...
johnny_loki Posted February 10, 2017 Author Share Posted February 10, 2017 I found the error logs where my server stores it core/logs/ but the errors still exist, either it's another file or the errors persist Link to comment Share on other sites More sharing options...
rocky Posted February 11, 2017 Share Posted February 11, 2017 It doesn't make sense for errors to continue occurred in files that don't exist. Is it the following line that is continuing to appear? Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394 If so, you should check what's on line 1394 of classes/Tools.php. That should give you a hint as to what's causing the problem. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 11, 2017 Author Share Posted February 11, 2017 yeah I still get the same errors Warning: Declaration of Link::getCategoryLink($category, $alias = NULL, $id_lang = NULL, $selected_filters = NULL, $id_shop = NULL) should be compatible with LinkCore::getCategoryLink($category, $alias = NULL, $id_lang = NULL, $selected_filters = NULL, $id_shop = NULL, $relative_protocol = false) in H:\root\home\bkarakostas-001\www\e-Solution\override\classes\Link.php on line 116Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394Warning: Illegal offset type in isset or empty in H:\root\home\bkarakostas-001\www\e-Solution\classes\Tools.php on line 1394 and in the link.php line 116 I have just this } which is closing the whole php and on tools.php line 1394 ( until 1396) if (isset($array_str[$str])) { return $array_str[$str]; } I don't get it everything seems fine. Link to comment Share on other sites More sharing options...
rocky Posted February 12, 2017 Share Posted February 12, 2017 That doesn't make any sense. If you are continuing to get errors in override/classes/Link.php, then the file must exist, and you need to follow the advice in my first reply. Regarding the second error, it seems the Tools::str2url($str) function is being called with an invalid string. It's probably caused by whatever module is overriding override/classes/Link.php. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 12, 2017 Author Share Posted February 12, 2017 Yeah mate as I said the link.php in line 116 it just closes the code with the } but the overide/classes/tools.php doesn't exist. In the classes/tools.php is the string which I can't figure out what is causing it. Link to comment Share on other sites More sharing options...
rocky Posted February 13, 2017 Share Posted February 13, 2017 I'm not sure what else you can do except disable third-party modules one-by-one until the errors stop. Link to comment Share on other sites More sharing options...
johnny_loki Posted February 13, 2017 Author Share Posted February 13, 2017 the thing is that I am not sure if I delete the correct error_log as when I viewed the folder /log there were several files, which I delete but none was named after error_log and there was no new file created in there after deletion. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now