WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] Error can't resolve host (20 posts)

  1. haleeben
    Member
    Posted 1 year ago #

    Hey Brett

    I haven't been able to update any plugins and was also getting an error when trying to authorize the Google Analytics Dashboard for WordPress
    plugin both errors say can't resolve host, and unfortunately your plugin seems to be the cause, I disabled your plugin and I get no more errors.

    Any ideas what might be causing this ?. I had a quick scan through your code but I couldn't find anything.

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 12 months ago #

    Hey haleeben,
    I can't think of anything I'm doing in my plugin that would be conflicting with an analytics plugin. Can you post a link to the exact plugin you're using and I'll try to see what's going on.

    Thanks!

  3. haleeben
    Member
    Posted 12 months ago #

    Hey Brett

    It's not just the analytics plugin but it's all plugins and WordPress, can't update anything. The only way I can update anything is to deactivate your plugin.

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 12 months ago #

    I can't remember, are you using a modified version of the plugin?

    Also, did this just start? Or have you had this problem from the beginning?

  5. haleeben
    Member
    Posted 12 months ago #

    Hey Brett

    I have modified it but only to display thumbnails

    File - user-view-show-staff-list.php - line 92 added the code below to give a no image placeholder

    if(has_post_thumbnail()){
    
                    $photo_url = wp_get_attachment_image_src( get_post_thumbnail_id(), $image_size );
                    $photo_url = $photo_url[0];
                    $photo = '<img class="staff-member-photo" src="'.$photo_url.'" alt = "'.$title.'">';
    
                }else{
                    $photo_url = '';
                    $photo = '<img class="staff-member-photo" src="'.site_url("wp-content/uploads/2013/04/image_placeholder.png").'" alt = "'.$title.'">';
                }

    I think I've been having the problem from the beginning but only recently linked it to the plugin.

  6. haleeben
    Member
    Posted 12 months ago #

    Hey Brett

    I just installed your plugin on a different site and managed to update the plugins with no problems, so not sure what's going on with the other site.

  7. Brett Shumaker
    Member
    Plugin Author

    Posted 12 months ago #

    Ok, I thought you might have been using that mod.

    Well, I'm not really sure what could be causing that issue on that one site. But I'm glad to see that it is working on another site of yours. Are the two sites on the same host? My only other thought is that it could be some strange permissions or server setup issue.

  8. haleeben
    Member
    Posted 12 months ago #

    Hey Brett

    With my last post I hadn't add the shortcode to a page and when I did that I couldn't update and got the error couldn't resolve host message. So the error doesn't happen with the plugin activated but does happen when the shortcode [simple-staff-list] is added to a page.

  9. Brett Shumaker
    Member
    Plugin Author

    Posted 12 months ago #

    Ok, well I'm unable to duplicate the issue using the no image placeholder mod. But it sounds like it would be something within the 'user-view-show-staff-list.php' file. I guess you could work through that file, commenting sections out until you can pin point the problem. But I just don't see anything in that file that could be causing those kinds of errors.

  10. haleeben
    Member
    Posted 12 months ago #

    So you can update wordpress and plugins without any errors while using the simple staff list plugin?

  11. Brett Shumaker
    Member
    Plugin Author

    Posted 12 months ago #

    Yep. I added in the no image placeholder mod to my test install and was able to go into the backend and update a plugin via the WordPress admin area.

  12. dahows
    Member
    Posted 12 months ago #

    Hi Brett,

    Cool plugin, thanks for providing it. I'm having a similar conflict with Akismet. When Simple Staff List is enabled, Akismet cannot connect to the servers. As soon as I disable Simple Staff List, connectivity for Akismet works like a champ. Any ideas?

  13. WP Bacon
    Member
    Posted 11 months ago #

    Brett,

    I've encountered this issue as well. All plugins on a site where Simple Staff List was installed could not be updated. Disabled your plugin and everything updated fine. I was able to reproduce the problem on two different sites.

  14. Brett Shumaker
    Member
    Plugin Author

    Posted 11 months ago #

    What kind of server environment is everyone running? I've not had this issue and I can't reproduce it either. I've got this plugin running on a Dreamhost shared server, Amazon Web Server, and WPEngine with no issues.

    I've been trying to ask around to some other devs about this issue and everyone is coming up blank. Has anyone checked their server's error log to see if anything is showing up in that?

    @dahows @FAT Media :: Are you two running an un-modded version of Simple Staff List?

  15. WP Bacon
    Member
    Posted 11 months ago #

    Brett,

    The sites I had this issue on are on a shared HostGator account. The plugin is unmodified. I've been running through some of your code trying to find the problem but I haven't found the issue yet.

  16. haleeben
    Member
    Posted 11 months ago #

    Hey Brett

    Yeah I'm on a HostGator shared server as well.

  17. dahows
    Member
    Posted 11 months ago #

    Same for me, HostGator with an unmodded version.

  18. Brett Shumaker
    Member
    Plugin Author

    Posted 11 months ago #

    Alright...I have tracked down the issue thanks to a friend with a HostGator site I could test on. The problem is with the flush_rewrite_rules(); on line 80 of simple-staff-list.php. I'm still not sure exactly why this is causing a problem but if you change the line to read:

    flush_rewrite_rules( false );

    OR remove it completely. This will solve the issue with plugin updates and I think it should work for the other "can't resolve host" errors. I believe this line is a development testing scrap that I forgot to remove when I pushed a new version of the plugin at some point. Once I figure that out I'll push an update with a permanent fix.

    Let me know if this solves your issues.

    Thanks!

  19. dahows
    Member
    Posted 11 months ago #

    Works like a champ! Thanks for the quick resolution Brett.

  20. Brett Shumaker
    Member
    Plugin Author

    Posted 11 months ago #

    Awesome.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic