Page 1 of 1

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

Posted: Fri Nov 19, 2021 6:31 am
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

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

Posted: Fri Nov 19, 2021 12:11 pm
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.