skip to Main Content

Jus tried to log in to my web admin and got this error:

Fatal error: Cannot redeclare oceanwp_webfonts_enqueue() (previously declared in /home/customer/www/ozdistributorsusa.com/public_html/wp-content/plugins/ocean-extra/includes/compatibility/ocean.php:94) in /home/customer/www/ozdistributorsusa.com/public_html/wp-content/themes/oceanwp/inc/customizer/controls/typography/webfonts.php on line 128

I can’t get acces to the actual site either, any suggestions?

3

Answers


  1. oceanwp_webfonts_enqueue() function declare more than one. this function may be used in loop.

    Login or Signup to reply.
  2. To fix it I manually commented the following functions in /wp-content/plugins/ocean-extra/includes/compatibility/ocean.php:

    • oceanwp_webfonts_enqueue()
    • ocean_get_google_font_css()
    • oceanwp_get_local_webfonts_data_dir()
    • oceanwp_get_local_webfonts_css_data_dir()

    It was a "bad" update, which is now already fixed in 2.0.4 (https://wordpress.org/plugins/ocean-extra/#developers)

    After commenting you can update that plugin via the panel or alternatively you can manually update it by removing the folder /wp-content/plugins/ocean-extra/ and uploading again the plugin.

    Login or Signup to reply.
  3. I had the same problem, I got access by changing the theme via in the Database (VIA PHPmyAdmin) for one of the ones that comes by default (like twentytwenty).

    I installed a new theme but the whole thing seems unstable still. If nothing better comes up I’m starting a fresh install.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search