close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on pages after upgrade to version 2

Thread began 10/16/2012 11:59 am by mousework50137 | Last modified 10/18/2012 3:43 pm by Jason Byrnes | 1224 views | 13 replies |

mousework50137

Error on pages after upgrade to version 2

Dear Webassist,
Upgraded to PowerGallery 2 today, from version 1 and followed the instructions you supply for the upgrade.

Now when trying to visit a page with a gallery on it I get the following error on the page,

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 2755 bytes) in /home/fhlinux007/f/fgeorobinson.com/user/htdocs/PowerGallery100/webassist/caching/PG_CachedResize_Image.php on line 117

the page in question is
coventry_builder_garage_conversion_gallery.php

Have I done something wrong.
I reapplied the code to the php page but still no better.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

this is a limit on the memory usage set by the server.

try adding the following code to the webassist/caching/PG_CachedResize_Image.php at line 1:

php:
<?php

ini_set
("memory_limit""256M")
?>
Sign in to reply to this post

mousework50137

Thanks for the quick reply.
I have done as suggested but now the page just floods with code if you look at the live page,

The first lines of my my code now read

<?php
ini_set("memory_limit", "256M")
?>
$resizeDir = getcwd();
chdir(dirname(__FILE__));
require_once("../framework/library.php");
chdir($resizeDir);

if (!class_exists("PG_CachedResize_Image")) {

if (!function_exists('mkdir_recursive')) {
function mkdir_recursive($pathname)
{
$old = umask(0);
is_dir(dirname($pathname)) || mkdir_recursive(dirname($pathname));
$retVal = is_dir($pathname) || @mkdir($pathname, 0777);
umask($old);
return $retVal;

Sign in to reply to this post

Jason ByrnesWebAssist

you removed an opening php tag.

the first 4 lines:
<?php
ini_set("memory_limit", "256M")
?>
$resizeDir = getcwd();



should be:
<?php
ini_set("memory_limit", "256M")
?>
<?php
$resizeDir = getcwd();

Sign in to reply to this post

mousework50137

It sort of cured the issue but all my thumbnails except the first one had broken link symbols in the gallery on the page, although the gallery admin page did show all the thumbnails.

I think I'll start a fresh using PG2.

Can I presume that If I was going to start again with a fresh install of PowerGallery 2 on this site, with a new database would I still need to adjust the file mentioned above?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you will still run into the memory limit problem and will need to add the code that was previously suggested.

If you continue to have problems, let us know and i will start an incident to look into it with you.

Sign in to reply to this post

mousework50137

hi,
OK,
I setup a new database, deleted all files for PowerGallery from the site.
Uploaded fresh PowerGallery files, v2, ran the install wizard, all ticks, created a gallery and could see the thumbnails in the admin pages, it even previewed ok in the admin pages.

Dropped the code onto the page, uploaded it and although it loads the thumbnails are missing and clicking on them just hangs the page.

Take a look at

coventry_builder_single_storey_extension_gallery.php

Cheers
Mark

Sign in to reply to this post

mousework50137

Hi guys,
still struggling with this could you see my post from yesterday above please,
thanks
Mark

Sign in to reply to this post

mousework50137

I have attached the file if that helps

Attached Files
coventry_builder_single_storey_extension_gallery.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...