• Resolved logicdigger

    (@logicdigger)


    I’m writing to report an error that I encountered while using the “Location Weather” plugin. When I try to access customizer page, I get the following error message:

    “Fatal error: Uncaught ValueError: Argument number specifier must be greater than zero and less than 2147483647 in /home/xxx/www/wp-content/plugins/location-weather/includes/Admin/LW_Widget.php:88”

    Upon investigating the code, I found that the issue is with the following line:

    echo sprintf( ‘<p>%1$s <a href=”‘ . esc_url( admin_url( ‘post-new.php?post_type=location_weather’ ) ) . ‘”>%$s</a> %3$s</p>’, esc_html__( ‘You did not generate any weather yet.’, ‘location-weather’ ), esc_html__( ‘click here’, ‘location-weather’ ), esc_html__( ‘to generate a new location weather now.’, ‘location-weather’ ) );

    It appears that the second argument in the sprintf function should be “%2$s” instead of “%$s”. The error message states that the argument number specifier must be greater than zero and less than 2147483647, which suggests that this is the issue.

    I kindly request that you take a look at this issue and provide a fixed plugin version. Please let me know if you require any further information from me.

    Thank you for your attention to this matter.

    • This topic was modified 2 years, 1 month ago by logicdigger.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @logicdigger,

    Sorry for the delayed response due to weekly holidays.

    We are aware of the issue and it has been resolved. We will release a new version of the plugin after doing some necessary tests. Hopefully, the new version of the plugin will fix the error and it will be released within a couple of days.

    You can either wait for the next update or create a thread here if you want the beta version of the next release.

    Have a great day!

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi?@logicdigger,

    The issue has been fixed in the latest version of the plugin. I’m going to mark it as?Resolved?now. Please feel free to open a new one if you have any further questions.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in plugin: Argument number specifier must be greater then 0’ is closed to new replies.