Title: Error Details &#8211; PHP Code Widget
Last modified: June 15, 2021

---

# Error Details – PHP Code Widget

 *  Resolved [mariodraghi9](https://wordpress.org/support/users/mariodraghi9/)
 * (@mariodraghi9)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-details-php-code-widget/)
 * I am currently developing a website with Elementor Pro using “Hello Elementor”
   theme.
    That said, I have unexpectedly received an email regarding PHP Code Widget
   error.
 * Please see below my screenshots to understand what I am looking for:
    [https://prntscr.com/15iels8](https://prntscr.com/15iels8)
   [https://prntscr.com/15iem1p](https://prntscr.com/15iem1p) [https://prntscr.com/15iem7f](https://prntscr.com/15iem7f)
 * Does anyone know how to get through this?
 * Many thanks in advance.

Viewing 1 replies (of 1 total)

 *  [ghost994](https://wordpress.org/support/users/ghost994/)
 * (@ghost994)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-details-php-code-widget/#post-14598125)
 * **open the plugin file “execphp.php”**
    replace
 *     ```
       add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
       ```
   
 * with
 *     ```
       function php_code_widget_init (){
           return register_widget('PHP_Code_Widget');
       }
   
       add_action('widgets_init', 'php_code_widget_init');
       ```
   
    -  This reply was modified 4 years, 9 months ago by [ghost994](https://wordpress.org/support/users/ghost994/).

Viewing 1 replies (of 1 total)

The topic ‘Error Details – PHP Code Widget’ is closed to new replies.

 * ![](https://ps.w.org/php-code-widget/assets/icon.svg?rev=992095)
 * [PHP Code Widget](https://wordpress.org/plugins/php-code-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-widget/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [ghost994](https://wordpress.org/support/users/ghost994/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/error-details-php-code-widget/#post-14598125)
 * Status: resolved