• I installed and activated the plugin, and its showing this Warning on select services.

    Warning: Invalid argument supplied for foreach() in /home1/pintillo/public_html/errepedesign.com/wp-content/plugins/simple-social-share/includes/admin-form.php on line 34

    And this ones for Select position and Show on

    Warning: in_array() expects parameter 2 to be array, null given in /home1/pintillo/public_html/errepedesign.com/wp-content/plugins/simple-social-share/includes/admin-form.php on line 47
    > Before Content

    How to fix this?

    https://www.ads-software.com/plugins/simple-social-share/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Perials

    (@perialscom)

    Hi pintillo86,

    Thanks for using our plugin and pointing out the bug to us.

    We have fixed the issue and updated the modified code on WordPress plugin repository. So please download the plugin once again and replace your old plugin files with the new one.

    In case the issue is not solved or you have any further doubts feel free to ask.

    Just for the record, by unchecking all the options on ‘Select services’ and/or ‘Show on’ you are indirectly disabling the plugin.

    Thanking you,
    Perials Team.

    Thread Starter pintillo86

    (@pintillo86)

    Thanks!
    But Still Getting this Warning on “Select Services” section

    Warning: Invalid argument supplied for foreach() in /home1/pintillo/public_html/errepedesign.com/wp-content/plugins/simple-social-share/includes/admin-form.php on line 34

    Plugin Author Perials

    (@perialscom)

    Dear pintillo86,

    Ideally you should not get the above mentioned error irrespective of what options you select in the settings page.

    For debugging further we need to recreate the issue on our development server. Request you to provide us following information:
    1. Did you made any changes in the plugin’s code? If yes then kindly provide us the details.
    2. Which version of WordPress you are using?
    3. Provide us the settings you are using in the Plugin’s setting page.

    For now, if you know a little bit of PHP, try the following
    Go to line no 34 of file admin-form.php in wp-content/plugins/simple-social-share/includes/admin-form.php and replace the below code
    foreach ($s3_options['ss-available-services'] as $service) {
    with
    foreach ((array)$s3_options['ss-available-services'] as $service) {

    Awaiting your reply,
    Perials Team.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warnings and Erros’ is closed to new replies.