We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33372
    • 1,611 Posts
    Hello all -

    Just a quick question:

    I have some clients who are complaining that they’re getting a PHP illegal pointer offset error when trying to upload jpg images that they’ve processed in Picasa (see sample error below). I’m not with them now so I haven’t tried to figure out exactly what might be going on, but if I resave these images with higher compression in Gimp they then work fine. So I’m assuming that Picasa is creating some sort of non-standard .jpg files and that’s the problem.

    So the question is: Does anyone here have experience with Picasa and MaxiGallery, and if so do you have any guidance or a workaround for using the two together?

    Thanks in advance for your replies.

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	exif_read_data(someimage.jpg) [exif_read_data]: Process tag(x0001=ModeArray ): Illegal pointer offset(xFFFFFC50 + x0060 = xFFFFFCB0 > x3FC0) 	 
      Error type/ Nr.: 	Warning - 2 	 
      File: 	/home2/xyz/public_html/manager/includes/document.parser.class.inc.php(769) : eval()'d code 	 
      Line: 	432
      "Things are not what they appear to be; nor are they otherwise." - Buddha

      "Well, gee, Buddha - that wasn't very helpful..." - ZAP

      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
      • 7923
      • 4,213 Posts
      You can remove that exif data reading from maxigallery code.. it is used for just to get the time of the image capture and use that for the date.. just remove that bit of code and the upload time will be used.

      It seems that picasa puts something to the EXIF data that your php version cannot read, it could possibly work with a newer php version..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 33372
        • 1,611 Posts
        Thanks! BTW this site is running PHP version 5.2.6. Go figure...
          "Things are not what they appear to be; nor are they otherwise." - Buddha

          "Well, gee, Buddha - that wasn't very helpful..." - ZAP

          Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
          • 20413
          • 2,877 Posts
          Probably different problem, But FWIW
          I had some log errors from MaxiGallery regarding _date_ time ago.

          After adding this to my php.ini
          [Date]
          ; Defines the default timezone used by the date functions
          date.timezone = America/Los_Angeles 


          I had no more problems.
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower