WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Snap My Roll] [Plugin:SNap My Roll] (33 posts)

  1. Ovidiu
    Member
    Posted 6 years ago #

    hi there,
    when using the plugin with the widget it came, I get this error on my site:

    Warning: imagecreatefrompng(exceeded.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/snap-my-roll.php on line 62

    any ideas what could be wrong? line 62 read:

    $exceeded = imagecreatefrompng ("exceeded.png");

    http://wordpress.org/extend/plugins/snap-my-roll/

  2. quinze
    Member
    Posted 6 years ago #

    exceeded.png is an image file used to filter out the "error" image returned by websnapr.com

    The file is included in the last version of the plugin and should be kept in the smae directory than the plugin script file "snap-my-roll/snap-my-roll.php"

    Could you check if this file exist ?

    If not simply reinstall the last version of the plugin and make sure that the image file is in the directory.

  3. Ovidiu
    Member
    Posted 6 years ago #

    yes, exceeded.png is in the right folder.

    BUt I am using wordpress installed into a subdirectory, so there is an additional wordpress directory in my path.

    So maybe the path is hardcoded somewhere?

  4. quinze
    Member
    Posted 6 years ago #

    The path is dynamically generated.

    The version 0.9 uses 2 versions of the exceeded file. Could you give it a try ?

  5. Ovidiu
    Member
    Posted 5 years ago #

    sorry, didn't see your reply.
    now I am using your latest version the error is gone, but the widget isn't displaying anything. see here: http://pacura.ru/ right above the links in the sidebar is your widget, but you have to check the source code, all you will find is an empty div, :-( I have no clue whats wrong...

  6. quinze
    Member
    Posted 5 years ago #

    Hi Ovidiu, there was indeed a display problem with WP 2.6.1. This is solved with WP 2.6.2.
    Upgrade your blog to 2.6.2, reactivate the plugin and it should work.

  7. Ovidiu
    Member
    Posted 5 years ago #

    updated to 2.62 your plugin 1.01 but still nothing shows up. can you check at the link I gave above?

  8. quinze
    Member
    Posted 5 years ago #

    Accroding to what I see you don't have created a link yet, the table doesn't exist.

    You should add some links to your blog (build a blog roll) before using the widget

    WordPress database error: [Table 'web6db2.wp_links' doesn't exist]
    SELECT wp_links.link_name, wp_links.link_url FROM wp_links WHERE link_visible = 'Y'
  9. Ovidiu
    Member
    Posted 5 years ago #

    thats weird I didn't notice that.
    Anyway I have links, as you can see there is a links widget on my site :-) exactly below your widget.

    is wp_ hardcoded somewhere in your plugin? I have another db prefix...

  10. quinze
    Member
    Posted 5 years ago #

    Thanks Ovidiu for reporting this, indeed the database prefix was hardcoded.

    I have changed the plugin and create a 1.0.2 version that fixes this issue.

    Let me know if your problem is solved.

  11. Ovidiu
    Member
    Posted 5 years ago #

    hmm. no errors. yet no snapshots. maybe have to wait?

  12. Ovidiu
    Member
    Posted 5 years ago #

    : imagepng() [function.imagepng]: Unable to open 'wp-content/uploads/http___magister_co_za_t.png' for writing: No such file or directory in /var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/snap-my-roll.php on line 82
    # Magister
    ┬╗Magister
    
    Warning:

    It seems your plugin is using: $js_url = get_option('siteurl') . '/wp-content/plugins/'. dirname( plugin_basename(__FILE__)) . '/js/';

    to detect where to upload to and I am not sure if that will work with my installation as my blog uses:

    WordPress address (URL): http://pacura.ru/wordpress
    Blog address (URL): http://pacura.ru

    it is installed into a subdirectory. so I am not sure if siteurl will get you the right path, there was something like blogurl? well anyway these are just guesses as I am no programmer :-)

  13. quinze
    Member
    Posted 5 years ago #

    Ok I'll check and keep you posted

  14. quinze
    Member
    Posted 5 years ago #

    The plugin uses the upload_path option to determine where to store the snapshots. This option is set into your blog options. Could you have a look at the value of it and post it here ?

    Your wordpress address is represented by the siteurl option.
    I never use the blog adress also known as the home

    I have solved the title problem in the 1.0.3 version

  15. Ovidiu
    Member
    Posted 5 years ago #

    upload path is wp-content/uploads the other settings I have already psoted above.

    listen, if you are willing to help out I could provide you an admin login for a day or two.

  16. Ovidiu
    Member
    Posted 5 years ago #

    with your latest version 1.03 I get this error on my frontpage:

    <b>Fatal error</b>:  Call to undefined function error() in <b>/var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/snap-my-roll.php</b> on line <b>67</b><br />

    here are the lines in question (66-68):

    if (!is_writable($directory . '/'))
    			error("WordPress upload directory is not writable");
    		//create error image to compare them with file downloaded
  17. Ovidiu
    Member
    Posted 5 years ago #

    changing error to echo gives me the same old errormessage I had before 1.03

  18. Ovidiu
    Member
    Posted 5 years ago #

    I poked around a little checking what the is_writable function does... http://de2.php.net/is_writable

    my files are owned by my vhost user and the www-data group which is the user/group apache2 runs as. so it is writeable.
    also many plugins that write stuff and update other plugins do work.

  19. quinze
    Member
    Posted 5 years ago #

    I have decided to use the function wp_upload_dir() to get the directory path to the upload dir.

    Could you give a try to the 1.0.4 ?

    I have changed the error() to an echo()

    Thansk again for your help making things better.

  20. Ovidiu
    Member
    Posted 5 years ago #

    ok, upgraded to 1.04:

    getting other warnings now:

    <b>Warning</b>:  imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Data is not in a recognized format in <b>/var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/snap-my-roll.php</b> on line <b>80</b><br />
    
    <br />
    <b>Warning</b>:  imagesx(): supplied argument is not a valid Image resource in <b>/var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/functions.php</b> on line <b>3</b><br />
    <br />
    <b>Warning</b>:  imagesx(): supplied argument is not a valid Image resource in <b>/var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/functions.php</b> on line <b>3</b><br />
    <br />
    
    <b>Warning</b>:  imagepng(): supplied argument is not a valid Image resource in <b>/var/www/web6/web/wordpress/wp-content/plugins/snap-my-roll/snap-my-roll.php</b> on line <b>82</b><br />
  21. quinze
    Member
    Posted 5 years ago #

    Have you already a websnapr key ?

  22. Ovidiu
    Member
    Posted 5 years ago #

    yes it is introduced in the widget...
    I can try and get another one though...

    but I do not understand how to recover my websnapr key, if I try and register with the same email, it only tells me the email is already used on their system, but no clue how to recover my key :-( no login nothing!

  23. Ovidiu
    Member
    Posted 5 years ago #

    when upgrading the key was carried over until upgrading to 1.04 where it got lost. Seems to work but in FF I get some script errors, but looks ok in IE6...

    Thx for the extensive support :-)

  24. Ovidiu
    Member
    Posted 5 years ago #

    One more request: I just had one idea, as the size T is too small and size S is too big, I thought I could set your plugin to get size S for me and modify the css to "resize" to my sidebar width but then noticed that your widget doesn't add any IDs or classes to the html it outputs :-(

    if you could add that that would be great :-) because otherwise we can't influence how it looks like.

  25. Ovidiu
    Member
    Posted 5 years ago #

    sorry I think I worked too much :-) of course your widget adds IDs and classes :-( I managed to use size S and adjust the images to my sidebar width :-)

    p.s. could you please check if it works from your side when browsing with firefox? I have issues here but that could be due to our proxy :-(

    sorry for being a pest, but the titles of the links are not rendered right, one of the links is called Mel & Matze and when displayed the '&' gets converted to html entities :-(

  26. Ovidiu
    Member
    Posted 5 years ago #

    oh, and how about an option to change the duration of the "slideshow" ?

  27. quinze
    Member
    Posted 5 years ago #

    htmlentites removed and the timeout option has been added in 1.0.5.

    some error message added to makes things clearer

    Your snap my roll looks great under Firefox.

    You're not a pest, you are avery good debugger ;)

  28. Ovidiu
    Member
    Posted 5 years ago #

    :-) thx.
    it works perfect now.
    Want another idea how to improve it?
    what about adding the function to stop the slideshow when someone mouses-over?

    :-) otherwise thx for the help.

  29. quinze
    Member
    Posted 5 years ago #

    Thanks for your last suggestion. I might take a look at it and may be add navigation, will see how easy it is...

    Could you mark this topic as resolved ?

  30. Ovidiu
    Member
    Posted 5 years ago #

    hey there.

    Just noticed a little drawback, nothing to do with your plugin, just some information, I am using this size: Small [202x152 pixels] and am showing 5 screenshots in my sidebar.

    I just noticed those tiny images use 94kb per image!!! Thats almost 500kb!

    Fortunately I noticed that and have taken the widget off, my site was extremely big and slow with it.

Topic Closed

This topic has been closed to new replies.

About this Topic