WordPress.org

Ready to get started?Download WordPress

Forums

Ribbon Maker
[resolved] Fatal error (8 posts)

  1. fairivy
    Member
    Posted 1 year ago #

    here's my site: fair ivy

    Fatal error on line 75 when I try to upload an image

    http://wordpress.org/extend/plugins/ribbon-maker/

  2. hypershock
    Member
    Plugin Author

    Posted 1 year ago #

    Ivy,

    What version of WordPress are you using?

    And for PHP?

    Thanks,

    Hypershock

  3. hypershock
    Member
    Plugin Author

    Posted 1 year ago #

    Also in your ERROR_LOG on your site, you might have to use FTP of the "file browser" plugin to see it, what is the exact description of the FATAL ERROR?

  4. hypershock
    Member
    Plugin Author

    Posted 1 year ago #

    Ivy,

    starting at line 75:

    if(exif_imagetype($_FILES["custom_image"]["tmp_name"])==IMAGETYPE_PNG) {
    				$new_name = plugin_dir_path(__FILE__) . "ribbon_maker_ribbon".$_POST['ribbon_maker_slot'].".png";
    				move_uploaded_file($_FILES["custom_image"]["tmp_name"],$new_name);
    				update_option('ribbon_maker_do_custom'.$_POST['ribbon_maker_slot'],'active');
    			} else {
    				echo "Please upload a png image";
    			}

    The code in that section simply checks for an image type. Can you tell me exactly what steps you are taking to create this, including the type of file etc. As much detail as can be given will be extremely helpful. Creating a camstudio screen captured recording might be very useful too as you won't have to describe it, I can just watch the resulting video.

    If you produce a video for me to watch of the problem you send the private link from youtube to it to me at big-al@bowie-tx.com.

  5. fairivy
    Member
    Posted 1 year ago #

    Hi Hypershock,
    Thanks for your replies. I'm using the latest version of WordPress, I don't know about PHP. The file description is as follows:

    Fatal error: Call to undefined function exif_imagetype() in /home/fairivy1/public_html/wp-content/plugins/ribbon-maker/ribbon-maker.php on line 75

    The type of file I made was a png. I have to head out for the day right now but I will try and create a video later if possible.

  6. fairivy
    Member
    Posted 1 year ago #

    Hi again,
    I use a Mac, so I can't create a video with camstudio, and couldn't find any similar free software. Think you can help me with what i have? THere are no steps, i just click Choose File, select my .png, and hit Upload. Then it fails.

    Thanks,
    Lucy

  7. hypershock
    Member
    Plugin Author

    Posted 1 year ago #

    Lucy,

    I just uploaded a patch that should resolve your problem and in fact will allow you to upload any kind of image file.

    Al

  8. fairivy
    Member
    Posted 1 year ago #

    That is fantastic, thank you so much!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.