Title: PHP.ini Error
Last modified: January 26, 2020

---

# PHP.ini Error

 *  Resolved [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-ini-error/)
 * When I go to the dashboard I get a bunch of php code in the header.
 *     ```
       wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
       wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
       ```
   
 * It does mention my php.ini file but all I have in it is the following.
 *     ```
       max_input_vars = 1600;
       max_execution_time = 180;
       ```
   
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12367958)
 * Hello [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/),
 * I trust you’re doing well!
 * I’m afraid the above lines are not showing what is the error on your site. It
   is showing a directory path to one of the plugin’s file. Not sure if this is 
   related to the vales added inside a php.ini file.
 * Please enable WordPress debugging by putting the following to the wp-config.php
   file:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', false );
       ```
   
 * Make sure that you insert these lines above `/* That's all, stop editing! Happy
   blogging. */` in the wp-config.php file.
 * Visit your site’s dashboard to replicate the issue. This way all errors will 
   be saved in the debug.log file inside the /wp-content/ directory. Share these
   warnings/notices with us.
 * These errors can be coming from a conflict with another plugin, please check 
   if any of active plugins on your site is causing this
    – Deactivate all plugins,
   leave only the Defender plugin active, – If the warnings/notices are not showing
   up anymore, start activating one plugin at the time, till these will be back 
   on a dashboard page.
 * This way you will find which plugin causing this.
 * Before running this test, please have a site backup, so if something will go 
   wrong, you can always restore your site.
 * Please advise,
 * Cheers,
    Nastia
 *  Thread Starter [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12370534)
 * [@wpmudev-support9](https://wordpress.org/support/users/wpmudev-support9/) I 
   have done the error log already and it shows the same code that I have shared
   above.
 * I have also tried turning off the plugins with no success.
 * The only thing in the php.ini file is also shared above.
 *     ```
       max_input_vars = 1600;
       max_execution_time = 180;
       ```
   
 *  Thread Starter [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12374989)
 * My theme Avada requires these be set to what they are.
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12383270)
 * Hi [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/)
 * I hope you’re well today!
 * I’m sorry for “pushing” but could you please check the debug.log again? These
   lines (that you shared in your first post)
 *     ```
       wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
       wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
       ```
   
 * are definitely “cut off” at the beginning and there must be something more logged
   in the log – between the date at the beginning of the rror line and between the
   path (as shared above). That missing part is actually crucial.
 * As for PHP settings mentioned in your earlier post – they wouldn’t cause this.
   However, PHP itself might in some cases – what are the PHP and WordPress versions
   that you are currently using for your site?
 * Kind regards,
    Adam
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12552713)
 * Hello [@jmeyer2485](https://wordpress.org/support/users/jmeyer2485/),
 * I hope you are doing well!
 * We haven’t heard back from you for a while now so we’re going to mark this ticket
   as resolved, if you do have any followup questions or require further assistance
   feel free to reopen it and let us know here.
 * Kind regards,
    Nastia

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP.ini Error’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/php-ini-error/#post-12552713)
 * Status: resolved