Warning: array_key_exists() expects parameter 2 to be array, boolean given in public_html/domain.com/store/system/library/themeoptions.php on line 449
line 449 is:
if(array_key_exists($product_id, $this->getLatestProducts($product_id))){
Full code for the few lines is:
public function isLatestProduct($product_id)
{
if(array_key_exists($product_id, $this->getLatestProducts($product_id))){
return true;
}
return false;
}
I am not a coder as I said so have no idea what all that means.
And guidance to solve this appreciated, thanks
You have tried to contact theme support?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Thanks again
My guess is that:
Code: Select all
$this->getLatestProducts($product_id)
and this:
Code: Select all
array_key_exists($product_id, $this->getLatestProducts($product_id)
Get your money back.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
I think that code should be:hawk007 wrote: ↑Sun Jul 26, 2020 6:53 pmCode: Select all
if(array_key_exists($product_id, $this->getLatestProducts($product_id))){
Code: Select all
if (is_array($product_id, $this->getLatestProducts($product_id)) && array_key_exists($product_id, $this->getLatestProducts($product_id))) {
viewforum.php?f=88
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Code: Select all
$this->getLatestProducts($product_id)
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Yeah some of the code on there is shocking.
If you can't get it fixed you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk