Fresh installation and warning - Warning: include(includes/classes/language.php)

Open to all! Ask other shopowners for help.
Post Reply
zeeshop
Member
Posts: 71
Joined: Sun Jan 10, 2021 11:30 pm
Phoenix Version:
Has thanked: 15 times
Been thanked: 2 times

Fresh installation and warning - Warning: include(includes/classes/language.php)

Post by zeeshop »

Hi,

I decided to install a fresh copy of Phenioc 1.0.8.7 and all seems to be working fine.
As I was not able to find any cookies widget, I tried to install a simple add-on which I have used in the past from:
link removed

However, only getting one error which can be stopped by disabling error reporting in config.php, but I think I better try to resolve the issue instead of putting it under the carpet.

Getting below warning :

Code: Select all

Warning: include(includes/classes/language.php): failed to open stream: No such file or directory in /homepages/31/d*********/htdocs/*********/includes/modules/header_tags/ht_jcm_cookieconsent_tart.php on line 43

Warning: include(): Failed opening 'includes/classes/language.php' for inclusion (include_path='.:/usr/lib/php7.4') in /homepages/31/d*********/htdocs/*********/includes/modules/header_tags/ht_jcm_cookieconsent_tart.php on line 43
Line 43 referring to:

Code: Select all

    include('includes/classes/language.php'); 

Is there any suggestion to get rid of that?

Many thanks


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Fresh installation and warning - Warning: include(includes/classes/language.php)

Post by ecartz »

zeeshop wrote: Fri Nov 19, 2021 6:31 am

Code: Select all

    include('includes/classes/language.php'); 
In general with the autoloader, when you see a line like that, you can simply remove it. That will get rid of the message, and as you already noticed, it works even when that line doesn't do anything.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply