Products and Uploads module warning header

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm
Location: Roma, Italy

Products and Uploads module warning header

Post by nervino »

In debug mode, I can see at the top of the cmsms's pages, several warning messages about the constants defined in Products.module.php (lines 49-56) and in Orders.module.php (lines 36-53).

Here an example:

Code: Select all

Notice: Constant ORDERSTATUS_BACKORDER already defined in /var/www/siti/test/modules/Orders/Orders.module.php on line 36
(...)

Notice: Constant PRODUCTS_PREF_NEWSUMMARY_TEMPLATE already defined in /var/www/siti/test/modules/Products/Products.module.php on line 49
(...)

Warning: Cannot modify header information - headers already sent by (output started at /var/www/siti/test/modules/Products/Products.module.php:54) in /var/www/siti/test/index.php on line 328
I checked if there are extra white spaces at top/bottom of the files involved but all seems ok.

No messages with debug=false.

Is it a normal behaviour?

thanks
Post Reply

Return to “Developers Discussion”