Forums / Contribution-Writing Guidelines / Plugin authors: Overrides of /includes/functions/html_output.php

Plugin authors: Overrides of /includes/functions/html_output.php

Views: 3,049

Results 1 to 3 of 3
2 May 2014, 8:08 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Plugin authors: Overrides of /includes/functions/html_output.php

If you've authored a plugin that requires a core-file overwrite of /includes/functions/html_output.php or if your plugin references the built-in PHP **SID **variable, be sure to update your plugin's usage of the SID, as picandnix identified in this post: http://www.zen-cart.com/showthread.php?184548-Ceon-URI-Mapping-v4-x&p=1245756#post1245756. Otherwise, users of your plugin running on later releases of PHP 5.4 will encounter the out-of-memory error!

See DrByte's code fix here: https://www.zen-cart.com/showthread.php?207435-php-5-4-fatal-error-Allowed-memory-size-of-83886080-bytes-exhausted&p=1240514#post1240514

2 May 2014, 8:35 PM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Plugin authors: Overrides of /includes/functions/html_output.php

Good call making this more prominent, Lat9 :cheers:

3 May 2014, 7:48 AM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Plugin authors: Overrides of /includes/functions/html_output.php

and what about this in the same file?

if ( ($session_started == true) && defined('SID') && zen_not_null(SID) ) {

to

if ( ($session_started == true) && defined('SID') && zen_not_null(constant('SID')) ) {

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...