1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Image Upload error

Discussion in 'Installation and General Troubleshooting' started by otester, Apr 14, 2012.

  1. otester

    otester New Member

    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. otester

    otester New Member

  3. PuckRobin

    PuckRobin New Member

    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:
    return unserialize(stripslashes($submitted_data));
     
  4. otester

    otester New Member

    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/p...980e3f7f6a2e62da500d6de69c.gif&w=90&h=60&zc=1

    instead of:

    http://www.x.co.uk/hotaru/content/p...980e3f7f6a2e62da500d6de69c.gif&w=90&h=60&zc=1
     

Share This Page