Featured Products

PHP Warning: Use of undefined constant MODULE_BOXES_FEATURE - Featured Products

PHP Warning: Use of undefined constant MODULE_BOXES_FEATURE

by Valquiria » Thu Jun 03, 2021 5:20 am

Hola @raiwa, como estas?

My error_log file started to fill with the following warning:

PHP Warning: Use of undefined constant MODULE_BOXES_FEATURED_STATUS - assumed 'MODULE_BOXES_FEATURED_STATUS' (this will throw an Error in a future version of PHP) in /home2/mysite/public_html/catalog/includes/application_top.php on line 471
application_top.php line 471 looks like this:

if ((MODULE_CONTENT_INDEX_FEATURED_PRODUCTS_STATUS == 'true') || (MODULE_BOXES_FEATURED_STATUS == 'true')){

Any clue how to fix it? OSC Edge.

Best regards.

Valqui
Last edited by Valquiria on Thu Jun 03, 2021 7:18 pm
Valquiria
Posts: 8
Joined: Tue Apr 27, 2021 1:08 am
Contact:

Re: PHP Warning: Use of undefined constant MODULE_BOXES_FEA

by raiwa » Thu Jun 03, 2021 12:40 pm

Hola Valquiria,
This should fix it:

Code: Select all

if ( (defined('MODULE_CONTENT_INDEX_FEATURED_PRODUCTS_STATUS') && MODULE_CONTENT_INDEX_FEATURED_PRODUCTS_STATUS == 'true') || (defined('MODULE_BOXES_FEATURED_STATUS') && MODULE_BOXES_FEATURED_STATUS == 'true') ) { 
Un saludo cordial
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: PHP Warning: Use of undefined constant MODULE_BOXES_FEA

by Valquiria » Thu Jun 03, 2021 7:15 pm

Buenas tardes Rainer, espero estes muy bien y saludable.

El arreglo funcionocorrectamente !!! sos un genio :)
The cod fix worked correctly !!! You're a genius :)

Have a nice day.

Valqui
Valquiria
Posts: 8
Joined: Tue Apr 27, 2021 1:08 am
Contact: