Results 1 to 4 of 4

Thread: Image Upload error

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Upload error

    If I upload an image and then click next on the submit 2/3 I get...

    Code:
    Notice: unserialize() [function.unserialize]: Error at offset 388 of 389 bytes in /home/getsmash/public_html/hotaru/content/plugins/submit/libs/SubmitFunctions.php on line 296
    According to [http://drupal.org/node/529866], unserializing a resource (image?) can cause problems, any ideas?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Got rid of the error, but there is still some work to be done to get the image to display (remove the C:\fakepath\ bit), more postings to come soon.

    http://stackoverflow.com/questions/1...rror-at-offset

  3. #3
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Some server installations add slashes to quotes while serializing, which is wrong. Instead of those complex advices, just change that part in line 296 as:

    PHP Code:
    return unserialize(stripslashes($submitted_data)); 

  4. #4
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by PuckRobin View Post
    Some server installations add slashes to quotes while serializing, which is wrong. Instead of those complex advices, just change that part in line 296 as:

    PHP Code:
    return unserialize(stripslashes($submitted_data)); 
    Problem I have at the moment is when the image is posted (x = website name, hover with mouse to see full url):

    http://www.x.co.uk/hotaru/content/pl...w=90&h=60&zc=1

    instead of:

    http://www.x.co.uk/hotaru/content/pl...w=90&h=60&zc=1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image Upload 0.2
    By Nick in forum Plugin Downloads
    Replies: 58
    Last Post: 04-23-2013, 09:46 AM
  2. Problem with Image upload plugin and submit
    By hotaruuser in forum How-To and Troubleshooting
    Replies: 2
    Last Post: 06-06-2011, 10:49 AM
  3. Image Upload (Local OR URL)
    By Manolof in forum Plugin Suggestion Box
    Replies: 4
    Last Post: 05-05-2011, 09:22 AM
  4. Allow user to upload / choose Avatars
    By newbieone in forum Plugin Suggestion Box
    Replies: 13
    Last Post: 11-08-2010, 02:00 AM
  5. Post Picture Upload?
    By Tony in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 01-30-2010, 05:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •