Home>Support>Uncaught Error: Undefined constant

Uncaught Error: Undefined constant

At least since september, everytime we try to add a new post to our blog, instead of the usual post editing window, we get this one, asking me details about a Tweet, our Twitter user, API key and secret, e.a.

Also inmediateluy, we get an automated WordPress email informing us of a critical error, which I understand states a problem between Site Origin plugin and our current theme. The error log reads as follows:

E_ERROR motako errorea 122 lerroak eragin du /home/tokikome/public_html/wp-content/themes/mts_corporate/functions/widget-tweets.php fitxategian. Errore mezua: Uncaught Error: Undefined constant "i" in /home/tokikome/public_html/wp-content/themes/mts_corporate/functions/widget-tweets.php:122
Stack trace:
#0 /home/tokikome/public_html/wp-content/plugins/siteorigin-panels/inc/admin.php(570): mts_widget_recent_tweets->form(Array)
#1 /home/tokikome/public_html/wp-content/plugins/siteorigin-panels/compat/layout-block.php(36): SiteOrigin_Panels_Admin->enqueue_admin_scripts()
#2 /home/tokikome/public_html/wp-includes/class-wp-hook.php(310): SiteOrigin_Panels_Compat_Layout_Block->enqueue_layout_block_editor_assets('post-new.php')
#3 /home/tokikome/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#4 /home/tokikome/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/tokikome/public_html/wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'post-new.php')
#6 /home/tokikome/public_html/wp-admin/edit-form-blocks.php(309): require_once('/home/tokikome/...')
#7 /home/tokikome/public_html/wp-admin/post-new.php(72): require('/home/tokikome/...')
#8 {main}
  thrown

We can temporarily overcome the error by disabling PageBuilder, writing the post, then enabling PageBUilder again, but it’s not a sustainable solution. ANy help would be very welcome (We contacted the theme developers already and they say the problem is caused by your plugin).

Thanks in advance

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 11 months, 6 days ago Alex S
    Hi, I Work Here

    Hi Joxe,

    Thanks for getting in touch. Unfortunately, the error you’re experiencing is coming from Twitter related social media from your theme. Based on the provided error message, it’s theme specific and not directly related to Page Builder – disabling Page Builder helps because it’s being used to add/load the widget, so if you disable the plugin it can’t load the widget and thus the error can’t occur. Almost everything that used the Twitter API recently broke due to Twitter changes so it’s possible if the theme is a little dated that the widget isn’t compatible anymore. I recommend reaching out to the authors of the theme for assistance with this issue.

    Kind regards,
    Alex

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More