Jump to content

Error for extensions that are not installed


Recommended Posts

During recent upgrade I was surprised to see the error log was 1.5gb!

I may have had the extensions installed for test in the distant past but they are not there now.  How do I stop these?    

Thanks

Quote

[10-Dec-2020 16:08:10 Europe/London] PHP Notice:  Error: Hook 'enhanced_sorting/hooks/controller.admin.php' was not found in /home/ross/public_html/classes/hookloader.class.php on line 298
[10-Dec-2020 16:08:10 Europe/London] PHP Notice:  Error: Hook 'enhanced_sorting/hooks/controller.admin.php' was not found in /home/ross/public_html/classes/hookloader.class.php on line 298
[10-Dec-2020 16:08:10 Europe/London] PHP Notice:  Error: Hook 'enhanced_sorting/hooks/admin.navigation.php' was not found in /home/ross/public_html/classes/hookloader.class.php on line 298
[10-Dec-2020 16:08:10 Europe/London] PHP Notice:  Error: Hook 'SFWS_Deluxe_Related_Products/hooks/admin.navigation.php' was not found in /home/ross/public_html/classes/hookloader.class.php on line 298

 

Edited by fettlebox
Link to post
Share on other sites

Might I dare say that you might be looking at the wrong database?

Also, if the errors are being generated while viewing content on the storefront, the queries against this table might be cached, even if the actual table is empty. So, clear the cache.

 

 

Link to post
Share on other sites

Every time CubeCart starts up (meaning, every page request), the CubeCart_hooks table is queried for a list of plugin hooks (and if the results are in the cache, the cache will supply the list). So, yes, a lot of these error messages.

Just to eliminate a weird possibility, look in /includes/global.inc.php for the value to use for $glob['dbprefix']. Is it actually 'cc_cc_cc_'?

Link to post
Share on other sites

So, the global.inc.php value is 'cc_'.

Looking closely at the screen grab posted above ("Also empty I'm afraid."), I see that the query was looking for 'cc_cc_cc_CubeCart_hooks'.

Might I dare say that you might be looking at the wrong database? Or at least the wrong table?

 

Link to post
Share on other sites

I'm looking at the hooks table.  The store is in its own cpanel account & there is only one CC database & a empty test database.  The name of the db matched the one named in global.inc.php.

 

However I think you may be right.  Looking at the filemanager table there are less images listed than expected.  Same for inventory, coupons tables plus document content is old versions.  History only lists versions 5.0.8 to 5.1.1.  Looks to be from 2012!!

So where is the current db hiding??  I'll message the support team.

Edited by fettlebox
typo
Link to post
Share on other sites

I was in the right database but didn't spot it was over 5 pages in the phpmyadmin nav-tree!   Never seen that drop-down before.

Capture.JPG.af0f5cde35377ec16e777276060b99bf.JPG

The db has grown from c500mb to 1.5gb due to the upgrade (which I had to do in version steps).  The db now has three sets of duplicate tables prefixed cc_, cc_cc_ & cc_cc_cc_.

1.2gb of that is in the cc_CubeCart_cookie_consent table - seems strange to have gotten so big so quick.  I notice in the database part of the ACP there is a note under the table:

Quote

cc_cc_CubeCart_cookie_consent.log_hash has duplicate KEY indexes. One of these could be removed.

I found the hooks from the error log in the 'cc_CubeCart_hooks & have now deleted them.   I double checked - no reference to those hooks in cc_cc or cc_cc_cc_ versions of that table.   I'm still getting errors relating to those hooks (as well as others).

Am I ok to delete the cc_cc_ & cc_cc_cc_ prefixed tables?

 

Link to post
Share on other sites
Quote
Today, 18:49 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/admin_kutAtd.php?_g=settings&node=errorlog



 
Today, 18:49 File: [controller.admin.pre_session.inc.php] Line: [27] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:48 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:48 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:717 - session_start() [<a href='http://docs.php.net/manual/en/function.session-start.php'>function.session-start.php</a>]: ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)
https://fettlebox.co.uk/burner-washers-asbestos-free-large.html?set_currency=TWN



 
Today, 18:48 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:48 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/burner-washers-asbestos-free-large.html



 
Today, 18:43 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:43 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/vintage-used-parts/primus-reserve-cap-with-chain-new-old-stock-not-repro.html



 
Today, 18:43 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:41 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:40 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:38 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:38 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/burner-washers-small-asbestos-free-pack-of-4.html



 
Today, 18:38 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:33 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:33 [<strong>Warning</strong>] /home/ross/public_html/classes/sanitize.class.php:114 - Security Warning: Illegal array key "/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material" was detected and was removed.
http://fettlebox.co.uk/images/images/jiaju33.php?/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material




 
Today, 18:33 [<strong>Warning</strong>] /home/ross/public_html/classes/sanitize.class.php:114 - Security Warning: Illegal array key "/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material" was detected and was removed.
http://fettlebox.co.uk/images/images/jiaju33.php?/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material




 
Today, 18:33 [<strong>Notice</strong>] /home/ross/public_html/classes/ssl.class.php:39 - Undefined index: _g
http://fettlebox.co.uk/images/images/jiaju33.php?/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material


 
Today, 18:33 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:33 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/pressure-lamp-parts.html



 
Today, 18:33 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:28 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:28 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:717 - session_start() [<a href='http://docs.php.net/manual/en/function.session-start.php'>function.session-start.php</a>]: ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)
https://www.fettlebox.co.uk/vapalux-bialaddin-washer-kit-w5-type.html?set_currency=CAD



 
Today, 18:28 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 18:28 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://www.fettlebox.co.uk/vapalux-bialaddin-washer-kit-w5-type.html

 

I'm also concerned I may have been hacked although these may be a legacy issues from when the store was hacked a few years ago & a fake unrelated store placed in a subfolder.  I may be misremembering that though!

 

Quote

[<strong>Warning</strong>] /home/ross/public_html/classes/sanitize.class.php:114 - Security Warning: Illegal array key "/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material" was detected and was removed.
http://fettlebox.co.uk/images/images/jiaju33.php?/photos/kitchen/cabinet-finish--brown/query/ceramic-tile-backsplash-material
 

 

Link to post
Share on other sites

You can ignore most Notices. Undefined whatever is just PHP reminding the developers that there is a better way to write programs.

This Security Warning for an Illegal Array Key is just a little concerning. Most of the time, it is a cookie that uses punctuation in its name that CubeCart does not like.

But the URL posted above is very odd: is there, in fact, an /images/images/ folder? If so, is there a file named jiaju33.php in there?

 

Edited by bsmither
Link to post
Share on other sites

No that folder doesn't exist.  The wording of that array key is nothing to do with my site.  Looks like it's kitchen related & if my memory is right it was a kitchen website that got hosted in a sub-folder.  That was years back so maybe a legacy error that's been looping in the log since then.

Over 800K entries here cc_CubeCart_cookie_consent table

Capture.thumb.JPG.b8585992f90db505d652a6440fa663f6.JPG

 

 

Yes - legacy error from hack 4 years ago.

 

 

Edited by fettlebox
Link to post
Share on other sites

In admin, Maintenance, Rebuild tab, there is a new "Clear Cookie Consent Log" option. Hopefully you can get away with losing all these permissions from the past.

Also for CC64+, entries that get logged there are more strictly managed, so table shouldn't grow as fast.

Link to post
Share on other sites

Many thanks.  Errors seems to be limited to these on a loop now:

 

Quote
Today, 19:37 File: [controller.admin.pre_session.inc.php] Line: [27] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:37 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/admin_kutAtd.php?_g=settings&node=errorlogset_cookie() (session.class.php:721)
_start() (session.class.php:165)
__construct() (session.class.php:184)
getInstance() (controller.admin.pre_session.inc.php:33)
include() (admin_kutAtd.php:34)
Today, 19:37 File: [controller.admin.pre_session.inc.php] Line: [27] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:37 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/admin_kutAtd.php?_g=settings&node=errorlog



 
Today, 19:37 File: [controller.admin.pre_session.inc.php] Line: [27] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:37 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/admin_kutAtd.php?_g=maintenance



 
Today, 19:37 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:37 File: [controller.admin.pre_session.inc.php] Line: [27] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:37 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/admin_kutAtd.php?_g=orders



 
Today, 19:36 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:36 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/favicon.ico



 
Today, 19:36 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:36 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/favicon.ico



 
Today, 19:36 File: [controller.index.inc.php] Line: [28] "SET @@time_zone = 'Europe/London'" - Unknown or incorrect time zone: 'Europe/London'
Today, 19:36 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:717 - session_start() [<a href='http://docs.php.net/manual/en/function.session-start.php'>function.session-start.php</a>]: ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)
https://fettlebox.co.uk/apple-touch-icon.png



 
Today, 19:36 [<strong>Notice</strong>] /home/ross/public_html/classes/session.class.php:608 - Undefined index: samesite
https://fettlebox.co.uk/apple-touch-icon.png

 

Link to post
Share on other sites

You will get a lot of Undefined index and Undefined variable log entries, as long as your site has Debugging mode enabled.

The Incorrect Timezone has been discussed here, and requires the server admin to load the database's system table with timezone data.

The session_start Permission denied error also needs to be looked at by the server environment tech support.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...