Title: PHP 7.3 Incompatible
Last modified: October 2, 2020

---

# PHP 7.3 Incompatible

 *  Resolved [webboty](https://wordpress.org/support/users/webboty/)
 * (@webboty)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-7-3-incompatible-2/)
 * Hi, with PHP 7.0 all things work fine.
    Not so with PHP 7.3 it totally breaks
   the plugin backend.
 * In the logs I find the message:
 * PHP Fatal error: Uncaught Error: [] operator not supported for strings in …/wp-
   content/plugins/servebolt-optimizer/admin/admin-interface.php:193
 * Please change:
    `$links[] = sprintf('<a href="%s">%s</a>', admin_url( 'options-
   general.php?page=servebolt-wp' ), sb__('Settings'));`
 * to:
    `array_push($links, sprintf('<a href="%s">%s</a>', admin_url( 'options-general.
   php?page=servebolt-wp' ), sb__('Settings')));`
 * That should fix the issue.
    Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [webboty](https://wordpress.org/support/users/webboty/)
 * (@webboty)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-7-3-incompatible-2/#post-13484195)
 * Update … the issue was not primarly caused by this plugin but another one (wp-
   editor) that transformed the links array to a string, which caused this plugin
   to fail. The code above just made sure there was no string operation and fixed
   the individual error at the first level. However it did not solve the culprit
   at its root.
 * So this is not a PHP 7.3 issue of this plugin but of the other one – nevertheless…
   the push_array function is cleaner to use to avoid issues with other plugins.
   I would still recommend the change of the code.

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.3 Incompatible’ is closed to new replies.

 * ![](https://ps.w.org/servebolt-optimizer/assets/icon-256x256.png?rev=3250974)
 * [Servebolt Optimizer](https://wordpress.org/plugins/servebolt-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/servebolt-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/servebolt-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/servebolt-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/servebolt-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/servebolt-optimizer/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [webboty](https://wordpress.org/support/users/webboty/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-7-3-incompatible-2/#post-13484195)
 * Status: resolved