WPIntell

Source evidence

Sugession

PDF Thumbnail Generator · support · 2024-05-05T13:38:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
abbpc unresolved
Hi, On error, it use error_log on line 260 and 262. I wish REPLACE with send_exception so i can catch error. I mean today it’s only in debug.log file. With exception i can easy use my already existing module to perform some actions like, logging error in database, sending email on error and some orther. If needed, i can send you my module. Thanks Hello, what you mean by send_exception , I’ve never heard about such a function – it doesn’t exist in PHP neither in WP. I can imagine some do_action in there if you need to run some custom actions. Sorry, i mean trigger_error https://www.php.net/manual/fr/function.trigger-error.php or throw new Exception( “custom message” ); And maybe return false or better return new WP_Error(“custom message”); when error occur. And check with is_wp_error on line 99 just before other tests. Because now your function return true every time, even it don’t work as expected. I wish something where i can know error occurs and then know what i can fix. Today was because of security settings of Imagick that doesnot allow pdf reading, and without anything on screen i cant know that. Thank you for reading

Comments

2 shown
kubiq 2024-05-05T19:26:00+00:00

Hello, what you mean by send_exception , I’ve never heard about such a function – it doesn’t exist in PHP neither in WP. I can imagine some do_action in there if you need to run some custom actions.

abbpc 2024-05-05T21:04:00+00:00

Sorry, i mean trigger_error https://www.php.net/manual/fr/function.trigger-error.php or throw new Exception( “custom message” ); And maybe return false or better return new WP_Error(“custom message”); when error occur. And check with is_wp_error on line 99 just before other tests. Because now your function return true every time, even it don’t work as expected. I wish something where i can know error occurs and then know what i can fix. Today was because of security settings of Imagick that doesnot allow pdf reading, and without anything on screen i cant know that. Thank you for reading