[wp-trac] [WordPress Trac] #18488: set_transient crashes when value parameter is a SimpleXMLElement object
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 12 08:43:23 UTC 2011
#18488: set_transient crashes when value parameter is a SimpleXMLElement object
--------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache | Version: 3.2.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by bobbingwide):
Replying to azaozz. I would have hoped that most functions would produce
an error message if they were able to detect a problem with the parameters
or API usage. Before I update the wiki I'd like to find out what the
WordPress strategy is towards parameter validation and error handling.
To all readers: the main problem I had was that I didn't see any messages
when the error occurred. Not even in log files. I have now tracked this
down to some over zealous code in the wpStoreCart plugin. When I
deactivate that plugin, then I do get to see:
Fatal error: Uncaught exception 'Exception' with message 'Serialization of
'SimpleXMLElement' is not allowed'
So the lesson learned is - always try to reduce problems to the simplest
case,remove any excess baggage. PS. I had a different problem just a
couple of days ago... and wrote about it at
http://fobbonghide.co.uk/dotcom/2011/09/09/fob-warning-missing-argument-
message-missing/
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18488#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list