Blank gallery page.

gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Mon, 2007-09-24 23:53

OK, I've been trying out the 3.x RC Final and I'm having problems.

If I use the embed option in WordPress, with the rewrite plugin turned on, some of the sections (dynamic albums - updates/etc.) are blank if I try them, admin comes up with a 404 and the main gallery page is blank (i.e. site/wpg2 url)

If I turn off the rewrite on the dynamic albums and admin, plus disable some WP plugins, it all works perfectly. Like the CC wp-License plugin http://wiki.creativecommons.org/WpLicense. Turn it off and wpg2 works, turn it on and I get a blank page.

Any ideas...anyone?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 01:12

Hiya gfindlay,

As a rule of thumb, you should never use the Gallery2 rewrite admin rule, it breaks a number of things.. I know I not moved over the Gallery2 rewrite page yet to the new Wiki, that is still a work in progress and I am struggling to find time to complete it before my Wedding in less than two weeks time so I not documented that rewrite rules we know work and ones that break things..

I am not sure what the WP License plugin is doing to break the WPG2 output, it could be either over consuming the remaining php memory thus not leaving you with enough php memory or some how messing with the internal redirections that WPG2 sets in place..

Can you experiment a little more and work out what exactly breaks and when so I can document this..

Thanks

____________________________________
Wordpress / Gallery2 (WPG2) Author

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Wed, 2007-09-26 17:59

Following on from these posts of mine: http://gallery.menalto.com/node/69435
GFindlay, does the error look a bit like this:
http://www.digitaltoast.co.uk/wpg2
"This theme can only be viewed when embedded in WordPress and using vSlider 3"

(If that error is not on the page, it means I found the solution and will be back to post it shortly!)

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Wed, 2007-09-26 18:32

Thanks toastmaster.

Sadly, not quite. The main error doesn't give me anything - total blank page and when I view the page source, there's nothing.

Some of the rewrite rules rules cause a 404 error.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2007-09-26 20:49

I haven't tested dynamic albums, but my first guess is that they should work, since they should pump out rewrite rules for both .htaccess and the internal WP rewrite table. But it sounds like they don't work the way the rest of the rewrite rules do for some reason...

If you turn off the CC plugin, but turn on dynamic albums, does it work or blank page?

Kirk

EDIT: I just tested on my dev box. It is putting out the right .htaccess, which means that there is a problem with the WP rewrites. I'll try to take a look at that later tonight.
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Wed, 2007-09-26 21:05

Weird thing is its not just the CC plugin. This breaks when one of about a dozen plugins are active.

Don't know if its related but my multi-page posts are broken too. Check out http://bytor.co.uk/photo-gallery/photo-workbook/ and try to go to any of the extra pages. It just goes back to http://bytor.co.uk/photo-gallery/photo-workbook/

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2007-09-26 21:14

I just did some debugging, and the strange thing is that the dynamic albums and the admin rewrites are the only ones that are not included in the active rules when we call GalleryCoreApi::getPluginParameter('module', 'rewrite', 'activeRules')

That's the immediate cause of the dynamic album and admin problem, but I'll have to do some more digging to find the root cause.

EDIT: I see you're using watermarks, which have caused some problems for others. Could you try turning them off and see if that clears it up?

EDIT 2: I just fixed the dynamic albums issue in SVN. Would you try the latest SVN snapshot to see if it works for you. For admin, it's not showing up in .htaccess or in the active rewrite rules array, so I think for now, you'll have to turn admin rewrites off.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2007-09-26 21:48

I just moved the changes into Wordpress Extend as well, so grabbing a fresh copy from Wordpress Extend will contain the fixes
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Wed, 2007-09-26 22:32

OK, an update. Installed your new version. Still broken, but an error message this time. On the WP front page, when the rewrites are on and the "embed" option is active, I get this:

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 2 in /home/gfindlay/public_html/wp-includes/classes.php on line 99

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 2 in /home/gfindlay/public_html/wp-includes/classes.php on line 100

Also, when I try the WPG2 WP page to get into the embedded gallery, I get a blank screen apart from those 2 error lines.

When the rewrites are on, but the "embed" option is off (i.e. standalone gallery page), everything works like a dream.

Any help?

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Wed, 2007-09-26 22:33

Oh yeah, haven't turned off the watermarking. Still want me to do that?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2007-09-26 22:35

Yeah. Please try turning off watermarking.

Ozgreg and I are going back and forth on another couple of mods to the rewrite rules, too.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Wed, 2007-09-26 22:46

OK, watermarking turned off completely and the 2 errors have gone so I'm back to the pure white blank page with embed option.

 
lebaige

Joined: 2006-02-04
Posts: 6
Posted: Thu, 2007-09-27 00:18

I'm having similar problems. Since installing 3.0 I get nothing but blank pages when trying to view my gallery embedded or anything inside it. I'm also getting the "Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 2" error from time to time, although it's unpredictable as to exactly when or what is causing it.

Wordpress 2.3
Gallery 2.2.1
WPG 3.0 RC Final

URL Rewrites off
Dynamic Albums off
Watermarking off
All other plugins disabled did not help
Using the Wordpressembedded 0.2.0 theme, although it did the same with the older .1 version and the default Matrix

I've tried switching to normal gallery page and back to recreate the page. I deactivated and deleted my older version of wpg2 before installing per the upgrade instructions. I'm at a loss as to what else to try short of downgrading.

http://www.lebaige.com

EDIT: I ended up fixing this by removing some old legacy stuff that was in my wpg2header file that previous version of wpg2 called for but the newer ones do not. The gallery now displays properly. Unfortunately I had to disable to whole reason for upgrading, ie. Lightbox, as it tries to lightbox videos.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 00:30

It been fixed in the latest Refresh, grab another copy from Extend..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 00:32
lebaige wrote:

EDIT: I ended up fixing this by removing some old legacy stuff that was in my wpg2header file that previous version of wpg2 called for but the newer ones do not. The gallery now displays properly. Unfortunately I had to disable to whole reason for upgrading, ie. Lightbox, as it tries to lightbox videos.

I am a little confused at what you mean by this.. Can you clarify

____________________________________
Wordpress / Gallery2 (WPG2) Author

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Thu, 2007-09-27 00:54

OK, updated with latest version. The embed option doesn't give 404 or any errors, just white pages. Without the embed, the gallery standalone page, works perfectly, with and without rewrites on.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 00:58

Hiya gfindlay,

Have you tried to deactivate all other plugins to see if you get the same issue??
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Thu, 2007-09-27 03:34

Right...just spent the past couple of hours reactivating my plugins one by one and I have a few answers...

First, the embeded option isn't broken, it just seems to be a memory issue or conflict with some other plugins.

I'm running all but 5 of the plugins I had before - 4 because they were giving me blank screens on WPG2, the 5th because it broke multi-page Pages and was just being a PITA.

The 4 I've turned off are : Google XML Sitemaps v3.0, WP-DBManager v2.11, WP-AdminSwitcher v1.0 and WP NAVT v.95.41

The reason I suggest a memory problem is because, with Google Sitemaps active, after a certain number of plugins were activated, it didn't matter what else I tried to activate, WPG2 would show a blank page. With it turned off, I managed to activate all the others (apart from the ones just mentioned) without a problem...so far... It is a seriously memory hungry plugin...when it generates the sitemap for my site, it claims to use nearly 30MB.

Hopefully this will point you in a useful direction. If you need me to try anything else, just say so...unless its deactivating all my plugins again 'cos that sux ;)

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 04:23

Sounds like your php memory is running low.. From our older FAQ

Q:How come the embedded page just returns blank?

Most common cause of this problem is you do not have enough php memory allocated. Gallery2 requires 16MB to run and you can increase the memory allocation by adding the following line to your .htaccess located in your wordpress or root directory

php_value memory_limit 16M

However in your case I suspect you are going need much more than just 16MB, more like something like 32 or 40
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Thu, 2007-09-27 04:37

Well, there's a problem with that. Any time I put "php_value memory_limit xxM" with any value in the .htaccess, I get a "500 Internal Server Error" message returned. The thing is, the server is already set to 40M anyway. Anything else that might help?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 05:26

yeah guessing are running php:cgi which means you cannot increase the memory via the htaccess

From what I can see, when you turn on sitemap's you get a blank page, when you turn it off, you can see the WPG2 output right??
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Thu, 2007-09-27 07:49

Basically, yeah. Actually, when I turn on any of the 4 plugins I mentioned.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 08:00

Unfortunately you just about reached the end of how we can help you, basically Wordpress + Gallery2 when combined require about 16MB of php memory, and this is an overhead we just cannot reduce..

You have three options that I can think of,

A) Somehow get the amount of php memory increased to 64MB
B) Don't use the Google Sitemap plugin as it seems to be the most memory hungry
C) Try another plugin, http://wordpress.org/extend/plugins/wp-gallery-remote/ for example which does not have the integration of WPG2 thus it's memory requirements will be greatly reduced..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-09-27 10:19
ozgreg wrote:
C) Try another plugin, http://wordpress.org/extend/plugins/wp-gallery-remote/ for example which does not have the integration of WPG2 thus it's memory requirements will be greatly reduced.

But, if WP and G2 are both on the same server, they will both be running at the same time, even with wp-gallery-remote, so I wouldn't expect the overhead to be reduced by a whole lot.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
lebaige

Joined: 2006-02-04
Posts: 6
Posted: Thu, 2007-09-27 13:58
Quote:
I am a little confused at what you mean by this.. Can you clarify

In my wpg2header.php file, I had some code that previous versions of the plugin called for. Specifically ..

<?php if (isset($g2data['headHtml'])) {
list($g2_title, $g2_css, $g2_javascript) = GalleryEmbed::parseHead($g2data['headHtml']);
foreach ($g2_css as $css) { echo "$css \r\n"; }
foreach ($g2_javascript as $javascript) { echo "$javascript \r\n"; }
} ?>

I also had another line in there which I believe is from an early release of the g2image chooser that I also removed. Once those were gone, my gallery displayed as expected. Prior to removing them, I could get the gallery to display by disabling the wpg2header and footer files and forcing it to use the css specified in the options page.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2007-09-27 22:58

Nice spot!! :)
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Fri, 2007-09-28 13:33

OK,I've spent since Tuesday on this and it's driving me a little bit nuts.

Two websites, on the same server, with the same .htaccess settings with the same versions of gallery, wpg2 and vSlider

I have deleted all the .htaccess settings and regenerated them. I've deleted php.ini, I've checked and rechecked and rechecked, but I see these weird errors over and over again in the error logs for one site (see below) and even MORE confusingly, I am getting errors which don't relate to my site at all!

And all the time, I get this same error: "This theme can only be viewed when embedded in WordPress and using vSlider 3"

And from a quick google, I am the ONLY PERSON in the world getting this error!

Here are the gallery logs

Fri 28 Sep 2007 09:06:48 EDT Gallery Error Link 74.6.20.34 ERROR_PERMISSION_DENIED
Fri 28 Sep 2007 09:05:46 EDT PHP Error Link 212.158.167.104 [Notice] Undefined property: term_id in file /backup/TMPHOME/MYACCOUNT/public_html/blog/wp-includes/classes.php on line 481

But if I look at that first "Link" error, it points me to:
http://fireworks.funnfrolic.co.uk/gallery/main.php?g2_view=kburnalizerg2.KBurnalizerG2&g2_itemId=3790

which is a TOTALLY different account, not just a different parked or subdomain of digitaltoast.
eg: funnfrolic website is on the funnfrol account
digitaltoast website is on the digitalt account
How can I be getting errors from the funnfrol account in the digitalt account???

Here are some examples of the hundreds of errors I'm getting per minute in the wordpress logs

[28-Sep-2007 08:55:38] PHP Warning: loadwordpressoptions(./wp-config.php) [<a href='function.loadwordpressoptions'>function.loadwordpressoptions</a>]: failed to open stream: No such file or directory in /backup/TMPHOME/MYACCOUNT/public_html/gallery/themes/vSlider3/theme.inc on line 158
[28-Sep-2007 08:55:38] PHP Warning: loadwordpressoptions(./wp-config.php) [<a href='function.loadwordpressoptions'>function.loadwordpressoptions</a>]: failed to open stream: No such file or directory in /backup/TMPHOME/MYACCOUNT/public_html/gallery/themes/vSlider3/theme.inc on line 158
[28-Sep-2007 08:55:38] PHP Warning: loadwordpressoptions() [<a href='function.include'>function.include</a>]: Failed opening './wp-config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /backup/TMPHOME/MYACCOUNT/public_html/gallery/themes/vSlider3/theme.inc on line 158
[28-Sep-2007 08:59:43] PHP Warning: loadwordpressoptions(./wp-config.php) [<a href='function.loadwordpressoptions'>function.loadwordpressoptions</a>]: failed to open stream: No such file or directory in /backup/TMPHOME/MYACCOUNT/public_html/gallery/themes/vSlider3/theme.inc on line 158

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Fri, 2007-09-28 13:55

My first bet is that it's because of a change to the way the WPG2 options are stored in v3.0. vSlider is probably trying to get them using the old names.

I'll try to take a look at the theme itself, but it may be Sunday before I can.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Fri, 2007-09-28 14:08

My first guess was completely wrong. For the record, that function has nothing to do with WPG2. It's trying to get the vSlider configuration from WordPress, but it's trying to include wp-config.php from the gallery/themes/vSlider3 directory instead of the WordPress directory. Try changing line 158 of gallery/themes/vSlider3/theme.inc to

if(include('../../../wp-config.php')) {

or if you have wp-config.php in wordpress/ then make it

if(include('../../../wordpress/wp-config.php')) {

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Fri, 2007-09-28 15:07

Well, you were absolutely right. Many many thanks - It works perfectly, although navigating "up" and then back down again didn't work, but I put an absolute path to it and everything is great now - the theme works and I don't have pages of errors.

OK, what's REALLY confusing me is how come ONE of my sites is working fine like this, and the other isn't? I even downloaded the whole site, diffed all the files, and made sure they were identical, then re-uploaded the whole thing. I'd also totally uninstalled/deleted both Wordpress and Gallery vSlider3 themes too.

One thing - my host has symlinked my whole account as they ran out of space, eg:
The installation that works perfectly with the line
if(include('./wp-config.php')) {
has a path of
/home/MYACCOUNT/public_html/blog etc
but the installation which needs the line changed to
if(include('/home/MUACCOUNT/public_html/blog/wp-config.php')) {
has a "real" path of
/backup/TMPHOME/MYACCOUNT/public_html/blog but is apparently symlinked to /home/MYACCOUNT/
if all that makes sense! The host (site5) are saying it's not their end, can someone give me some solid way of proving that it is, as I've spent about 15 hours on this, and I want at least half a year's free hosting if it turns out to be them!

Again, I'm really grateful, Kirk

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Fri, 2007-09-28 15:15

Great that it's working!

Unfortunately, I don't know if I can blame them. the ./ in front of wp-config.php means "in the current directory", which if it's being called by theme.inc is the vSlider3 directory. So, to be honest, I'm not sure why it's working at all on the one it is working on. (I didn't look through all of the code, so I may be missing a way that it's calling wp-config.php in the correct directory.)

My bet is that they have PHP configured to not return an error on include on the one it is working on, but that it is configured to return the error you saw on a failed include in the other. (Which doesn't make much sense. It shouldn't die on a failed include, just warn. If you want it to die, you use require instead.)

So, at best, I think you could point to two different PHP configurations as the cause of your work.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Sun, 2007-09-30 18:59

Is there some script I can run to prove to the host that they're symlinking or something has messed things up?
I mean, HOW can an identical script fail?

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Mon, 2007-10-29 15:18

OK, I'm even more convinced that WPG2 (3.0.2) is doing something funky. If I have the PHP memory limit above 48M, all works perfectly. However, if I leave it at the 40M server default, I get a blank page. Looking at the source code for the blank page I see:

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-US">
<head>
<link rel="stylesheet" type="text/css" href="/gallery/main.php?g2_view=imageframe.CSS&amp;g2_frames=book"/>

<link rel="stylesheet" type="text/css" href="/gallery/modules/core/data/gallery.css"/>
<link rel="stylesheet" type="text/css" href="/gallery/modules/rating/rating.css"/>
<link rel="stylesheet" type="text/css" href="/gallery/modules/icons/iconpacks/KSIcons/icons.css"/>
<link rel="stylesheet" type="text/css" href="/gallery/modules/colorpack/packs/black/color.css"/>
<script type="text/javascript" src="/gallery/modules/search/SearchBlock.js"></script>
<script type="text/javascript" src="/gallery/lib/yui/yahoo-min.js"></script>
<script type="text/javascript" src="/gallery/lib/yui/connection-min.js"></script>
<script type="text/javascript" src="/gallery/modules/rating/rating.js"></script>

<script type="text/javascript" src="http://mms4.com/p2ff.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>

Notice anything? Gallery is the only thing mentioned. Its not even running the WordPress stuff at all. Even the DOCTYPE is wrong for WordPress. In fact, the broken headers don't resemble the WP headers remotely...

With the memory at 48M, these are the first headers - working perfectly:

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<title>Photo Gallery | ByTor’s Brain</title>

<link rel="icon" type="image/vnd.microsoft.icon" href="http://bytor.co.uk/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="meta" href="http://bytor.co.uk/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://bytor.co.uk" r (n 2 s 2 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1) gen true for "http://www.bytor.co.uk" r (n 2 s 2 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1))' />

<meta name="verify-v1" content="LqBFLJ5QOvv8WwQKm28puiw5vkh/M358joGwaVndct8=" />
<meta name="y_key" content="89a87a77117d5461" />
<meta name="generator" content="WordPress 2.3.1" />
<!-- leave this for stats -->

<link rel="stylesheet" href="http://bytor.co.uk/wp-content/themes/3c-black-letterhead-11c/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://bytor.co.uk/feed" />
<link rel="alternate" type="text/xml" title="RSS .92" href="http://bytor.co.uk/feed/rss" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://bytor.co.uk/feed/atom" />
<link rel="pingback" href="http://bytor.co.uk/xmlrpc.php" />

<link rel='archives' title='October 2007' href='http://bytor.co.uk/2007/10' />
<link rel='archives' title='September 2007' href='http://bytor.co.uk/2007/09' />
<link rel='archives' title='August 2007' href='http://bytor.co.uk/2007/08' />
<link rel='archives' title='July 2007' href='http://bytor.co.uk/2007/07' />
<link rel='archives' title='June 2007' href='http://bytor.co.uk/2007/06' />
<link rel='archives' title='May 2007' href='http://bytor.co.uk/2007/05' />
<link rel='archives' title='April 2007' href='http://bytor.co.uk/2007/04' />
<link rel='archives' title='March 2007' href='http://bytor.co.uk/2007/03' />

<link rel='archives' title='February 2007' href='http://bytor.co.uk/2007/02' />
<link rel='archives' title='January 2007' href='http://bytor.co.uk/2007/01' />
<link rel='archives' title='December 2006' href='http://bytor.co.uk/2006/12' />
<link rel='archives' title='November 2006' href='http://bytor.co.uk/2006/11' />
<link rel='archives' title='October 2006' href='http://bytor.co.uk/2006/10' />
<link rel='archives' title='September 2006' href='http://bytor.co.uk/2006/09' />

<!-- Current File is /index.php -->
[etc.etc.]

So, this help anyone work out what the hell is going on? I do have a lot of other plugins running, but WPG2 is the ONLY one that has an issue. In fact, I can add more and more plugins and nothing has a problem other than WPG2. At 40M, no errors, memory problems, etc. from ANYTHING else except WPG2. So it has to be a bug somewhere in WPG2. I'm running WPG2 3.0.2 and now WP 2.3.1.

Someone please acknowledge that there's a problem and try to do something about it....thanks.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-29 16:07

With other WP plugins, you're not running two complete programs. With WPG2, you're running all of WP and all of G2, even if it doesn't look like you're running G2. It loads an entire gallery item, which is the entire G2 program. So, it takes more memory than most WP programs.

If it's working at 48M, but not at 40M, then you've found the limit for it to run correctly. The headers and all that you're seeing are the part of G2 that has loaded before it exhausts the memory and dies. If it fully loads, it realizes that it's in embedded mode and does what it's supposed to.

Not a bug. We just need to update our documentation that 16M may not be enough and to keep raising it until it works.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
gfindlay

Joined: 2006-07-06
Posts: 20
Posted: Mon, 2007-10-29 16:35

Maybe trying to implement some way to get it to fail more gracefully than just a blank screen when it runs short? If such a thing is possible? No way to put in some sort of memory management or monitoring?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-29 17:14
gfindlay wrote:
Maybe trying to implement some way to get it to fail more gracefully than just a blank screen when it runs short? If such a thing is possible? No way to put in some sort of memory management or monitoring?

That's a good idea. I haven't tried replicating it by lowering PHP memory limit, but will. If we can't get in the loop before it dies, then blank page is it. But we might be able to get in ahead of it. I don't know if Ozgreg has played with this during the early days before I threw in G2Image.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-10-29 21:22

Unfortunately not easily, Gallery2 has had a stab at this on certain very memory intensive tasks but it is problematic. While 16MB is fine for the majority of WPG2 users, for some it not enough, thus making it very very subjective. What we really need is a php to issue a error message, out of memory however I yet to find how we could generate that..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation