• Resolved Abdussamad Abdurrazzaq

    (@abdussamad)


    Hello

    Two problems with this plugin:

    – When activating the plugin I get the following error message:

    The plugin generated 472 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    – I have wp_debug set to true for plugin development purposes. When I activate quick localization I see a lot of PHP notice error messages.

    Using PHP 5.3.8 here and quick localization 0.06.

    I like the idea of this plugin and would love to see the above errors fixed.

    Thanks in Advance

    https://www.ads-software.com/extend/plugins/quick-localization/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Namely

    (@namely-1)

    Hello Abdussamad,

    WP.org didn’t notify us about the new ticket, so hence one week late reply.

    To produce the problem have added this line into wp-config.php:

    define('WP_DEBUG', true);

    Had a looked in the code and found no place were the plugin generates any input during the activation.

    Indeed, with WP_DEBUG set to true, on activation, WP shows the message:

    The plugin generated 314 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Though the plugin is properly activated. And it is working good. Pay attention, QL menu is accessible and the plugin is set to active. You can deactivate it and activate it.

    The issue you actually run into is that with WP_DEBUG on you ask WP to tell you about all PHP warnings etc…

    One of those can be:

    Notice: Undefined index: footer_textarea in /srv/www/clients/client1/web1/web/wp-content/plugins/quick-localization/index.php on line 61
    Notice: Undefined index: only_unknown in /srv/www/clients/client1/web1/web/wp-content/plugins/quick-localization/index.php on line 65

    These are not errors just warnings. All works well though.

    With WP_DEBUG set to on you probably also get tonnes of other debug messages.

    Once you set WP_DEBUG to false, the warning on activation disappears.

    Let us know if you have any other issue with the plugin.

    It now works on thousand of sites with no issue.

    Plugin Author Namely

    (@namely-1)

    P.S. please also set on WP.org that the plugin works, else it will mislead other users. Thank you.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note:

    WP.org didn’t notify us about the new ticket, so hence one week late reply.

    I’m reasonably sure that you need to (if you haven’t already done so) subscribe to your own support forum via the link at the bottom of the page.

    See “Subscribe to Emails for this Plugin” at the bottom of this page. It’s not an automatic subscription for plugin authors, you have to do it manually.

    https://www.ads-software.com/support/plugin/quick-localization

    Plugin Author Namely

    (@namely-1)

    Thank you Jan for the clarification.

    WP.org needs to improve. Not every one is using RSS. Emails are so much better (for some people).

    Thread Starter Abdussamad Abdurrazzaq

    (@abdussamad)

    Those PHP notices are errors and it would be nice if you fixed them. I don’t know what the requirement is for plugin authors because I have never submitted a plugin to this site, but for themes you are required to check for errors with WP_DEBUG set to true:

    Fix PHP and WordPress errors. Add the following debug setting to your wp-config.php file to see deprecated function calls and other WordPress-related errors: define(‘WP_DEBUG’, true);. See Deprecated Functions Hook for more information.

    https://codex.www.ads-software.com/Theme_Development

    Plugin Author Name.ly

    (@namely)

    Good news, this has been resolved as of version 0.0.9.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Lots of errors’ is closed to new replies.