Support » Plugin: WordPress Shortcodes Plugin — Shortcodes Ultimate » Fatal error: Uncaught ValueError: Unknown format specifier

  • Resolved Ranjith Siji

    (@ranjithsiji)


    I am running a wordpress in php8.0 and I got

    Fatal error: Uncaught ValueError: Unknown format specifier """ in ---wp-content/plugins/shortcodes-ultimate/inc/core/assets.php:125 
    Stack trace: 
    #0 ---wp-content/plugins/shortcodes-ultimate/inc/core/assets.php(125): sprintf() #1 ---wp-includes/class-wp-hook.php(287): Su_Assets::register() 
    #2 ---wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() 
    #3 ---wp-includes/plugin.php(484): WP_Hook->do_action() 
    #4 ---wp-admin/admin-header.php(147): do_action() 
    #5 ---wp-admin/index.php(115): require_once('...') 
    #6 {main} thrown in ---wp-content/plugins/shortcodes-ultimate/inc/core/assets.php on line 125

    Due to this I now disabled the plugin and trying to fix it. Any help to fix this error and running again will be very good help. Expecting some comments in this issue.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fatal error: Uncaught Error: Failed opening required '/wp-content/plugins/shortcodes-ultimate/admin/class-shortcodes-ultimate-admin-top-level.php' (include_path='.:/usr/local/Cellar/php/8.0.0_1/share/php/pear') in /wp-content/plugins/shortcodes-ultimate/includes/class-shortcodes-ultimate.php:146 Stack trace: #0 /wp-content/plugins/shortcodes-ultimate/includes/class-shortcodes-ultimate.php(116): Shortcodes_Ultimate->load_dependencies() #1 /wp-content/plugins/shortcodes-ultimate/shortcodes-ultimate.php(54): Shortcodes_Ultimate->__construct('/Users/...', '5.9.6', 'shortcodes-ulti...') #2 /wp-content/plugins/shortcodes-ultimate/shortcodes-ultimate.php(60): run_shortcodes_ultimate() #3 /wp-admin/includes/plugin.php(2299): include('/Users/...') #4 /wp-admin/plugins.php(191): plugin_sandbox_scrape('shortcodes-ulti...') #5 {main} thrown in /wp-content/plugins/shortcodes-ultimate/includes/class-shortcodes-ultimate.php on line 146

    That’s in php 8 version, in php 7 it’s ok

    • This reply was modified 3 months, 2 weeks ago by zbralex.
    Thread Starter Ranjith Siji

    (@ranjithsiji)

    A very short and quick fix to get things working in PHP 8. is

    Just replace the line 125 in —wp-content/plugins/shortcodes-ultimate/inc/core/assets.php

    to

    'error' => sprintf( __('%1$s. <a href="%3$s" target="_blank"><u>%2$s</u></a>'), __( 'Failed to load content.', 'shortcodes-ultimate' ), __( 'Open link', 'shortcodes-ultimate' ), '%url%' ),

    And it works. If the owner of this plugin can update the code then that will be great.

    Fatal error: Uncaught ValueError: Unknown format specifier “a” in D:\xampp\htdocs\wp_chanbus1122\wp-content\plugins\woosidebars\classes\class-woo-sidebars.php:170 Stack trace: #0 D:\xampp\htdocs\wp_chanbus1122\wp-content\plugins\woosidebars\classes\class-woo-sidebars.php(170): sprintf(‘Search %a’, ‘Widget Areas’) #1 D:\xampp\htdocs\wp_chanbus1122\wp-includes\class-wp-hook.php(287): Woo_Sidebars->register_post_type(”) #2 D:\xampp\htdocs\wp_chanbus1122\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 D:\xampp\htdocs\wp_chanbus1122\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 D:\xampp\htdocs\wp_chanbus1122\wp-settings.php(557): do_action(‘init’) #5 D:\xampp\htdocs\wp_chanbus1122\wp-config.php(90): require_once(‘D:\\xampp\\htdocs…’) #6 D:\xampp\htdocs\wp_chanbus1122\wp-load.php(37): require_once(‘D:\\xampp\\htdocs…’) #7 D:\xampp\htdocs\wp_chanbus1122\wp-admin\admin.php(34): require_once(‘D:\\xampp\\htdocs…’) #8 D:\xampp\htdocs\wp_chanbus1122\wp-admin\plugins.php(10): require_once(‘D:\\xampp\\htdocs…’) #9 {main} thrown in D:\xampp\htdocs\wp_chanbus1122\wp-content\plugins\woosidebars\classes\class-woo-sidebars.php on line 170

    I encounter this fatal error and cannot continue unless I delete the whole plugin..

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.