No Image display on category and archives pages

petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Tue, 2008-01-15 11:17

Hello,

I have Wpg2 3.0.2 installed on WP 2.3.2 with the blue zinfandel theme from Aylwin.

I can see all the uploaded images and g2 images of the posts on my home page but none of them appear in the archives pages or category pages...

I have looked through the forum but it seems no one had the same problem...

anyone has an idea ?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-15 21:49

The most likely cause would be a bad WP permalink rule that is some how interfering with the G2 URL. When you look at your page, can you see the image (they appear broken) or no image at all??
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Wed, 2008-01-16 03:40

I have no image at all, here is the source code of the page :

Quote:
<div class="contentdate">
<h3>Jan</h3>
<h4>10</h4>
</div>

<div class="contenttitle">
<h1><a href="http://www.coquille.org/words/insert-wpg2-album-float-right-2/" rel="bookmark">insert wpg2 album float right</a></h1>
<p>Filed Under <a href="http://www.coquille.org/words/category/beijing/" title="View all posts in Beijing" rel="category tag">Beijing</a>&nbsp;|&nbsp;<a href="http://www.coquille.org/words/insert-wpg2-album-float-right-2/#respond" title="Comment on insert wpg2 album float right">Leave a Comment</a></p>
</div>
<p>
&nbsp;</p>
<p>&nbsp;</p>
<p>Noir et Blanc</p>
<p>avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit texte écrit avant l&#8217;insertion avec un petit [&#8230;]</p>

<div class="postspace">
</div>

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description rdf:about="http://www.coquille.org/words/insert-wpg2-album-float-right-2/"
dc:identifier="http://www.coquille.org/words/insert-wpg2-album-float-right-2/"
dc:title="insert wpg2 album float right"
trackback:ping="http://www.coquille.org/words/insert-wpg2-album-float-right-2/trackback/" />
</rdf:RDF> -->

My Gallery2 rewrite module validation is all ok but the module is off(safe), the URL rewrite module on Gallery is off, if II put it on, I get this message error :

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 7 path 2008

* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 1845 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
* in modules/core/classes/GalleryCoreApi.class at line 1796 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
* in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
* in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
* in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
* in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 43 (RewriteUrlGenerator::_onLoad)
* in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
* in modules/core/classes/GalleryEmbed.class at line 129

Should I customize url rewrite in Gallery in a certain way ?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Wed, 2008-01-16 04:09

hmmmm

I just realized that I am running Gallery 2.2.1, could that be the problem ? That would be a shame cuz everything seems to work so well except from that.
While waiting for a Gallery update, would there be a way to see those images in the category and archive pages ?

I realized that if I put the "default" permalink option I don't have the fatal G2 error but I still can't see the images on the pages (on the post page itself it works fine though).
Another test : with URL rewrite "off" on Gallery and the permalink option on "default" :

http://www.coquille.org/words/category/beijing/ (written by hand, not through the link on the page)

is working well, I can see all the images

http://www.coquille.org/words/?cat=4

is not working well

but if I set the permalinks on "date and name based" (URL rewrite "off" on Gallery), it is not working, I cannot see the images.

Looks like the problem is such a detail somehow, very frustrating :-)

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-01-16 04:28

FYI: Default in WP speak = No permalinks.. I just had a look at your site and it looks like the default category view for your WP theme is the post summary, not the full post which could be the issue (notice the ... in a few of your posts). Can you please switch your WP theme quickly back to the standard WP theme and see if you can see your photos in the category view then (you should be able to)..

As for your error "Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 7 path 2008" I seen errors before, basically G2 cannot work out how to generate the rewrite url thus why it is failing. In your Gallery2 Site Admin Panel -> URL Rewrite -> Test make sure the test is returning mod_rewrite, it should be.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Wed, 2008-01-16 07:36

thanx for that quick reply Ozgreg,

the default post view is "full text" on my wp theme syndication feed in the reading options, is there a category view or archive view options that I haven't seen ? Could it be the size of the post block ? (10 lines)

I have changed the theme to the default WP theme, and as you said, everything is working fine.

Quote:
Apache mod_rewrite
Testing if mod_rewrite is supported by the server. Success

I thought it could be a specific problem with the Aylwin theme but cannot check as he does not have any images in his posts on his site.

Note : the two last posts (Test en photo horizontale+Test en photo verticale) have images linked to uplaoded files in WP, so is it realy an url rewrite problem ?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-01-17 00:59

No it is the way the WP [url= http://codex.wordpress.org/Template_Tags/the_excerpt]excerpt[/url] is being built that is causing your issue.. WPG2 can parse tags in the_excerpt but for some reason your theme is not allowing this.. I found a WP plugin that may help you with your issue..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Thu, 2008-01-17 05:40

thank you,

ok,

I have installed and activated Excerpt and it works partly, except for the two first posts, and some images are not well positionned. When I reactivate Gallery URL rewrite, I still get the error message

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 7 path category[/quote
........]

How can I customize Excerpt so that all the images are displayed and G2 URL rewrite is on ? Sorry but I am totally newbie in that field...

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-01-17 22:02

Did you see my post regarding this

"As for your error "Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 7 path 2008" I seen errors before, basically G2 cannot work out how to generate the rewrite url thus why it is failing. In your Gallery2 Site Admin Panel -> URL Rewrite -> Test make sure the test is returning mod_rewrite, it should be."

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Fri, 2008-01-18 11:13

Yes I already answered you upper in the post that when I test I get a successullf answer :

Quote:
Apache mod_rewrite
Testing if mod_rewrite is supported by the server. Success

tha'ts why I don't get it, maybe I should just change theme, and start all over again, cuz with the default WP theme, everything works just fine....

Aylwin also writes that his themes are customized for WPG2 2 and is not sure it might work with wpg2 3..

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Fri, 2008-01-18 05:33

I am not sure if this issue is theme related or something to do with your rewrites. Guess testing your site using the default WP theme should test if it is theme related..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Fri, 2008-01-18 11:12

Actually you're right Ozgreg, I checked the other themes with the url rewrite on off on Gallery, as soon as I put it on, I got the same problem with the WP default theme :

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 7 path 2008

* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 1845 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
* in modules/core/classes/GalleryCoreApi.class at line 1796 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
* in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
* in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
* in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
* in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 43 (RewriteUrlGenerator::_onLoad)
* in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
* in modules/core/classes/GalleryEmbed.class at line 129
.......

Note : On WP default theme, when I have the URL rewrite off, the pics are displayed properly on category and archive pages....so I am going to stick to that one, for the moment.

I tested the URL rewrite on Gallery and it definitely gives me a "success" answer.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sat, 2008-01-19 21:06

Unfortunately I do not know how I can help you with your "(ERROR_MISSING_OBJECT) : Parent 7 path 2008" error, Kirk and I have seen it in a half a dozen postings but neither of us have been able to nail down why G2 url generator is not finding the path, I know from long experience that WP&G2 rewrites in certain situations on certain hosting platforms just do not play well together and unfortunately it looks like you have hit one of these situations..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo