Author Topic: help with errors in error log  (Read 3747 times)

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
help with errors in error log
« on: July 02, 2020, 03:38:39 AM »
Hi Guys,

We seem to be having a little problem with our site in the error log:

2020-07-01 16:52:39 - warning: AbanteCart core v.1.2.11 Use of undefined constant INSTALL - assumed 'INSTALL' (this will throw an Error in a future version of PHP) in <b>/home/site/public_html/core/engine/language.php</b> on line <b>66</b>

and

2020-07-01 16:52:39 - warning: AbanteCart core v.1.2.11 count(): Parameter must be an array or an object that implements Countable in <b>/home/site/public_html/core/engine/view.php</b> on line <b>569</b>
2020-07-01 16:52:39 - warning: AbanteCart core v.1.2.11 count(): Parameter must be an array or an object that implements Countable in <b>/home/site/public_html/core/engine/view.php</b> on line <b>571</b>

These last two lines continuously appear in the log file, over and over...

after updating to newer versions the errors are still there, just a different version number.

Any help would be fantastic, and fixes please explain simply.
Thanks

Amdy

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: help with errors in error log
« Reply #1 on: July 02, 2020, 03:54:03 AM »
Hello.

If you upgrade to latest version please clear all AbanteCart caches and if some  new warning in the log post here

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: help with errors in error log
« Reply #2 on: July 02, 2020, 04:47:55 AM »
all caches cleared,

same errors return...

Andy

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: help with errors in error log
« Reply #3 on: July 02, 2020, 05:23:00 AM »
What is your PHP version?

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: help with errors in error log
« Reply #4 on: July 02, 2020, 05:37:00 AM »
PHP version: 7.3.6

Andy

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: help with errors in error log
« Reply #5 on: July 02, 2020, 09:00:01 AM »
it's a php7 warnings, not errors, Please ignore them. Or just upgrade cart at least v1.2.15
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: help with errors in error log
« Reply #6 on: July 02, 2020, 09:18:17 AM »
it seemed like I was getting update messages though every day, so I upgraded to v1.2.12 and just did v1.2.13 (getting to v1.2.16 eventually)

however, 1.2.13 ended with the following message:

There has been a critical error processing your request
SQL Error: Unknown column 'title' in 'abiq_store_descriptions'
Error No: 1054
SQL: ALTER TABLE `abiq_store_descriptions` CHANGE COLUMN `description` `description` LONGTEXT NULL DEFAULT '' COMMENT 'translatable' , CHANGE COLUMN `title` `title` LONGTEXT NULL DEFAULT '' COMMENT 'translatable' , CHANGE COLUMN `meta_description` `meta_description` LONGTEXT NULL DEFAULT '' COMMENT 'translatable' , CHANGE COLUMN `meta_keywords` `meta_keywords` LONGTEXT NULL DEFAULT '' COMMENT 'translatable' ; in /home/site/public_html/core/database/amysqli.php on line 109

think its more broken now..

Andy



on a plus side, that update did stop the errors that I started the post with...
« Last Edit: July 02, 2020, 09:31:54 AM by wiggly »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: help with errors in error log
« Reply #7 on: July 02, 2020, 09:50:32 AM »
Hello.

If some tables are missing that means some of the upgrades are fail. Try to upgrade manually https://abantecart.atlassian.net/wiki/spaces/AD/pages/5275676/Upgrade+manually

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: help with errors in error log
« Reply #8 on: July 02, 2020, 11:18:06 AM »
there's a new error in the logs now (the same line over and over again)

2020-07-02 15:58:06 - warning: AbanteCart core v.1.2.13 Use of undefined constant CACHE_DRIVER - assumed 'CACHE_DRIVER' (this will throw an Error in a future version of PHP) in <b>/home/site/public_html/core/helper/system_check.php</b> on line <b>116</b>

I've looked at the manual upgrade page,  and can see where to download all the versions.
But, where to start - how do I know which update is the root of these problems ?

also, I can probably cope with downloading and coping files, but sql is an area I've not touched, and even my php knowledge is basic at best  :)

one thought was to delete the entire site and start from fresh (which won't help me learn with future update issues), also it would be a pain to try to reload the database and
the modified php pages. etc.

The site does still appear to work, but even slightly broken will cause issues with future updates, and may even stop it from working in the future.

Andy.

PS.

I've noticed that the shipping options are no longer working on the checkout page:

Error: No Shipping options are available. Please contact us for assistance!

There were two shipping options available, flat rate and free over a certain price.  and had been working previously (before my update issues)
is this cache driver error the reason for this problem ??

Andy

 
« Last Edit: July 02, 2020, 12:00:30 PM by wiggly »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: help with errors in error log
« Reply #9 on: July 03, 2020, 01:50:33 AM »


Error: No Shipping options are available. Please contact us for assistance!

There were two shipping options available, flat rate and free over a certain price

Andy

Go to the shipping method settings page and click save

Offline wiggly

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: help with errors in error log
« Reply #10 on: July 03, 2020, 03:17:10 AM »
clicked save on both pages,

still have the same problem.

got it.
there was no value in the flat rate shipping.

now to look at the free shipping extension.
« Last Edit: July 03, 2020, 03:23:17 AM by wiggly »

 

Powered by SMFPacks Social Login Mod