Upgrade to 2.1.15 Fills Up the Error_Log
-
When I upgraded from version 2.1.14 of your plugin to version 2.1.15 everything appeared to look and work just fine, but my error_log began filling up with entries like these any time a user visited a page containing listings:
[11-Dec-2014 21:05:46 UTC] SetTemplate function [11-Dec-2014 21:05:46 UTC] /home/username/public_html/wp-content/themes/genesis/404.php [11-Dec-2014 21:05:46 UTC] /home/username/public_html/wp-content/themes/genesis/404.php [11-Dec-2014 21:06:18 UTC] SetTemplate function [11-Dec-2014 21:06:18 UTC] /home/username/public_html/wp-content/themes/genesis/page.php [11-Dec-2014 21:06:18 UTC] /home/username/public_html/wp-content/themes/genesis/page.php [11-Dec-2014 21:07:40 UTC] SetTemplate function [11-Dec-2014 21:07:40 UTC] /home/username/public_html/wp-content/themes/genesis/page.php [11-Dec-2014 21:07:40 UTC] /home/username/public_html/wp-content/themes/genesis/page.php
As you can see, these aren’t PHP errors or warnings, it’s as if some code were writing to the error_log.
I took a look in your code for version 2.1.15, and sure enough, in /wp-content/plugins/dsidxpress/idx-listings-pages.php on line 128 there is a function called SetTemplate which writes to the error_log three times:
public static function SetTemplate($template) { error_log('SetTemplate function'); error_log($template); if (get_query_var('post_type') == 'ds-idx-listings-page') { $options = get_option(DSIDXPRESS_OPTION_NAME); if (!empty($options['ResultsTemplate'])) { $newTemplate = locate_template(array($options['ResultsTemplate'])); if (!empty($newTemplate)) $template = $newTemplate; } } error_log($template); return $template; }
It looks like your developers might have inadvertantly left this code behind. Commenting out the three error_log calls solves the problem, but it would be nice if you would fix this in the next version.
- The topic ‘Upgrade to 2.1.15 Fills Up the Error_Log’ is closed to new replies.