Open jessecowens opened 3 years ago
@bwmarkle This isn't causing any known major issues, but it has been blamed for unrelated issues when examining debug logs
@bwmarkle another hit in support about this warning https://www.boldgrid.com/feedback/helpdesks/14/tickets/21022-error-missing-bracket
@jamesros161 can you help out with this one?
@jamesros161 can you help out with this one?
Looking into it
Getting the same. (w/ DreamHost, PHP 8) Will there be a fix? Admin area is polluted with these warnings.
Getting the same. (w/ DreamHost, PHP 8) Will there be a fix? Admin area is polluted with these warnings.
Hi @looscrew - The best immediate fix is to disable WP_DEBUG_DISPLAY in your wp_config.php file. The message itself is just a warning, and doesn't affect operation of the site. Keeping WP_DEBUG_DISPLAY set to false is a good idea in general, because it can show errors to your visitors too. Check out this article on WP_DEBUG.
Hi @jessecowens, thanks for the response. I'm on a staging site. Debug is on and as I'm in development. The warnings go into the log file too, getting mixed with the real errors. Kind of a pain. I hope this gets resolved.
Hi @looscrew - Thanks for the additional info! I spoke to @jamesros161 and we have a potential fix for the problem. We're doing a little testing to make sure it's the right fix, and should have a release ready soon.
If you'd like to help us test the fix, change line 1300 of includes/class-boldgrid-inspirations-purchase-for-publish.php
to the following:
$regexp = '[\\[][^\\]]+[\'\", ]' . $attachment_id . '[^0-9]+.*[\\]]';
If you'd rather just clean up your logs and admin screen, and you've already installed an Inspiration on your staging site, you could also temporarily deactivate the plugin to clean up your logs, the only functionality you'll be missing is the Connect Search stock photo library.
Hi @jessecowens. I changed line 1300 as suggested. Unfortunately the warnings continue. In addition I killed the PHP process, deleted cache and did hard refresh. To no avail.
I appreciate the care.
Describe the bug Running PHP 8, the following warnings are thrown when BoldGrid Inspirations is active on every administration screen:
To Reproduce Steps to reproduce the behavior:
Additional context These warnings were reported by DreamHost, and replicated on a local installation using PHP 8