0
Welcome Guest! Login
0 items Join Now

sigplus problem... any help?

    • KO's Avatar
    • KO
    • Elite Rocketeer
    • Posts: 681
    • Thanks: 3

    sigplus problem... any help?

    Posted 13 years 4 days ago
    • Trying to solve this problem I'm having with a plugin called sigplus for image galleries...


      It's just for some reason when I access the page, it's blank... I looked around and saw this.
      By default, sigplus performs a memory check when generating images to prevent running out of memory when resizing excessively large images that would not fit into the available memory allocated to PHP. Should a memory overrun occur, a completely blank screen would be returned, which is not informative as to the nature of the error. Instead, sigplus inspects image dimensions before loading the original image and compares it to available memory, prompting an error message if the required memory is more than available. On some systems, however, sigplus is unable to retrieve the amount of memory available. The solution is to replace the body of the function SIGPlusImageLibrary::checkMemory in plugins/content/sigplus/thumbs.php with an empty function body essentially disabling the memory check:
      protected function checkMemory($imagepath) { }

      I just have no clue what the hell it means... I know where the file is at but what exactly do I do with it?
      The solution is to replace the body of the function SIGPlusImageLibrary::checkMemory in plugins/content/sigplus/thumbs.php with an empty function body essentially disabling the memory check:

      Thank you for reading.
      Can anyone help?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: sigplus problem... any help?

    Posted 13 years 4 days ago
    • forum.joomla.org/viewtopic.php?p=2674784

      Maybe you can comment out this:
      protected function checkMemory($imagepath) {
            $memory_available = memory_get_available();
            if ($memory_available !== false) {
               $imagedata = getimagesize($imagepath);
               if ($imagedata === false) {
                  return;
               }
               if (!isset($imagedata['channels'])) {  // assume RGB (i.e. 3 channels)
                  $imagedata['channels'] = 3;
               }
               if (!isset($imagedata['bits'])) {  // assume 8 bits per channel
                  $imagedata['bits'] = 8;
               }
       
               $memory_required = (int)ceil($imagedata[0] * $imagedata[1] * $imagedata['channels'] * $imagedata['bits'] / 8);
       
               if ($memory_required >= $memory_available) {
                  throw new SIGPlusOutOfMemoryException($memory_required, $memory_available, $imagepath);
               }
            }
         }
       
      Like this:
      /*protected function checkMemory($imagepath) {
            $memory_available = memory_get_available();
            if ($memory_available !== false) {
               $imagedata = getimagesize($imagepath);
               if ($imagedata === false) {
                  return;
               }
               if (!isset($imagedata['channels'])) {  // assume RGB (i.e. 3 channels)
                  $imagedata['channels'] = 3;
               }
               if (!isset($imagedata['bits'])) {  // assume 8 bits per channel
                  $imagedata['bits'] = 8;
               }
       
               $memory_required = (int)ceil($imagedata[0] * $imagedata[1] * $imagedata['channels'] * $imagedata['bits'] / 8);
       
               if ($memory_required >= $memory_available) {
                  throw new SIGPlusOutOfMemoryException($memory_required, $memory_available, $imagepath);
               }
            }
         }*/
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: sigplus problem... any help?

    Posted 13 years 1 day ago
    • I am having the same issue. I tried deleting the function altogether as suggested and also just the code inside the braces {} leaving the function there but non-functional (pun intended). It changes nothing. Just for the sake of testing, I am using a folder with a single 138KB image, so it's a good bet it's not actually running out of memory.

      I disabled and even uninstalled RokGallery thinking it might be causing some kind of conflict. No joy. I turned on debugging in the sigplus plugin and also in the Joomla! configuration, but I still get a completely blank page.
    • Do you Nrf2? You'd better start soon!
    • KO's Avatar
    • KO
    • Elite Rocketeer
    • Posts: 681
    • Thanks: 3

    Re: sigplus problem... any help?

    Posted 13 years 1 day ago
    • Hmmm... that's interesting because I'm using the same template Radiance.
      BTW, I did what prim recommended but no go. I'm guessing this is a template issue because the plugin works well for other RT templates.
  • Re: sigplus problem... any help?

    Posted 12 years 11 months ago
    • I cannot help but wonder the same thing - that it's a template-related issue. I, too, have used sigplus with other RT templates without issue.

      I had edited out the template I was using, btw, because I did not want to seem as if I were hi-jacking your post. Looks like you read the post before I edited it. It does seem that we are both having the same issue on the same template, though. It's a somewhat glaring common denominator.
    • Do you Nrf2? You'd better start soon!
    • KO's Avatar
    • KO
    • Elite Rocketeer
    • Posts: 681
    • Thanks: 3

    Re: sigplus problem... any help?

    Posted 12 years 11 months ago
    • so I take there is no solution to this?

      All the best.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: sigplus problem... any help?

    Posted 12 years 11 months ago
    • I'm not sure if it helps but have you also checked this?

      drupal.org/node/207036

      It might also be useful to check max_post_size, max_file_size or similar values.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: sigplus problem... any help?

    Posted 12 years 6 months ago
    • I am having the same problem with Radiance.
      I was using Quasar and it worked fine, installed Radiance and the pages would not load.
      Went back to Quasar and now those pages load (with sigplus) incorrectly, but they load. It must be the template.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: sigplus problem... any help?

    Posted 12 years 6 months ago
    • Try to increase memory_limit parameter in your php.ini file. Sigplus clearly notifies you that it doesn't have enough memory to process images on that page 8)
    • Check my services at: Mihha-Vision
  • Re: sigplus problem... any help?

    Posted 12 years 6 months ago
    • I checked the memory limit on the php.ini file - it was set to 256M (lots)
      I commented out the:
      "replace the body of the function SIGPlusImageLibrary::checkMemory in plugins/content/sigplus/thumbs.php with an empty function body essentially disabling the memory check"
      I removed the radiance template. I have not removed all of the extensions that came with becoming a member. I guess that is next? Everything was working before I loaded the template and extensions.
      The pages are loading in Quasar, but the only pop up window that works is one that uses mootools.
      Nothing using jQuery works at all.
      Thanks for your help

Time to create page: 0.063 seconds