Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author TobiasBohn

    (@tobiasbohn)

    We try to analyze the error.

    But let’s security issues:
    If the folder “button_package_1” in the folder “/ buttons /” done?
    Which version of PHP are you using? (We need the PHP functions: opendir, readdir and filetype)

    Same issue.
    Running WP 3.8.1
    PHP version 5.4.4-14+deb7u7

    Yes I have:
    wp-content/plugins/instagram-picture/button/button_package_1/

    drwxr-xr-x 3 www-data www-data 4096 Feb 12 18:14 ./
    drwxr-xr-x 6 www-data www-data 4096 Jan 20 08:36 ../
    drwxr-xr-x 2 www-data www-data 4096 Jan 20 08:36 button_package_1/

    The directory has:

    -rw-r--r-- 1 www-data www-data 2487 Jan 20 08:36 Followme1.png
    -rw-r--r-- 1 www-data www-data 2544 Jan 20 08:36 Followme2.png
    -rw-r--r-- 1 www-data www-data 5535 Jan 20 08:36 Followme3.png
    -rw-r--r-- 1 www-data www-data 5352 Jan 20 08:36 Followme4.png
    -rw-r--r-- 1 www-data www-data 5513 Jan 20 08:36 Followme5.png

    The error is :

    Failed to load resource: the server responded with a status of 403 (Forbidden)
    http://foo.com/wp-content/plugins/instagram-picture/button//

    Notice the ‘button//‘ in the URL.

    i have the same issue… any assistance much appreciated… thanks

    Is this plugin still supported? Did anyone figure out how to fix this?

    Thanks

    Steve

    Plugin Author TobiasBohn

    (@tobiasbohn)

    Course. But currently gets the paid employment, a higher value. I will try to solve all problems. But this can take time.

    Sjourney

    (@sjourney)

    This is still broken.

    Sjourney

    (@sjourney)

    Actually, this is broken on Chrome. But not firefox.
    Here is a comparison screenshot:
    https://www.dropbox.com/s/ipxm2tfyempxybv/broken_follow_me.png

    When I install the plugin I receive table doesn’t exist errors for the following queries:

    SELECT text FROM  WHERE id='7'
    INSERT INTO wp_instagram_info (id, text) VALUES ('7', '')
    INSERT INTO wp_instagram_info (id, text) VALUES ('8', '0')
    INSERT INTO wp_instagram_info (id, text) VALUES ('9', '[[\"button_package_1\",\"Followme5.png\"],[\"button_package_1\",\"Followme2.png\"],[\"button_package_1\",\"Followme4.png\"],[\"button_package_1\",\"Followme3.png\"],[\"button_package_1\",\"Followme1.png\"]]')
    SELECT text FROM  WHERE id='8'
    INSERT INTO wp_instagram_user_info (id) VALUES ('1')

    Notice the missing table names. If you look inside instagram-picture.php on line 42, an unnecessary global call is made on $instagram_picture_variable which when removed fixes this, but I still received table doesn’t exist errors on wp_instagram_info. The query on line 51 causes this, maybe consider doing a table check first?

    $checktable = mysql_query("SHOW TABLES LIKE '$this_table'");
    $table_exists = mysql_num_rows($checktable) > 0;

    Aha! I just found the problem. In the file inc/output_widget.php on line 285 and 286 the variable $result_follow_me is null. The follow_me value was not saved in the widget_instagram_picture option. When I add it in manually then YAY it works! Then I realized I had to update the widget settings by hitting the save button on the widget page. That does the trick!

    One last thing: while your WP_Widget update functions work, they are a bit messy. Maybe use this instead?

    function update($new_instance, $old_instance) {
    	$instance = $old_instance;
    	$instance['style'] = strip_tags($new_instance['style']);
    	$instance['title'] = strip_tags($new_instance['title']);
    	$instance['link'] = strip_tags($new_instance['link']);
    	$instance['bild_title'] = strip_tags($new_instance['bild_title']);
    	$instance['border-radius'] = strip_tags($new_instance['border-radius']);
    	$instance['follow_me'] = strip_tags($new_instance['follow_me']);
    	return $instance;
    }

    I hope this helps!

    Also, please consider adding class names to the button wrapper to make custom styling easier. Thanks for all your hard work 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Follow me button won't load’ is closed to new replies.