random block not appearing

Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Thu, 2010-04-01 18:13

the site is http://marywillsussman.com - the front page is Wordpress with a random gallery block in the right column.

If browser cache is cleared, a visit results in a foreshortened display, seeming to fail at the point of getting the gallery2 block. A reload succeeds and produces a properly rendered page.

This may have started on upgrade to WP 2.9.2.
WPG2 is Version 3.0.7
Gallery URL = http://www.marywillsussman.com/gallery2/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.12 cgi
Webserver = Apache
Database = mysqlt 5.0.90-msl-usrs-sure2-log, lock.system=database
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, NetPBM, Gd

There are no apache errors of note.

I am looking for some performance or integration issue.

I am also looking for some words of wisdom from anybody reading this!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-04-01 19:19

I've never visited the site before and my first visit appears just fine in Firefox. Although I did hit the standalone G2 site before hitting the WP site.

o.k. I see what you're seeing in IE. First thing I'd try changing is from Database locking to File locking. It's faster and more reliable on Linux (usually)

As for performance, I'd take a serious look at the decision to use ICD....

Maybe give Suprsidr's Media Block a try to see if it behaves the same in different browsers:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Thu, 2010-04-01 19:35
nivekiam wrote:
(good stuff snipped)

As for performance, I'd take a serious look at the decision to use ICD....

If you are referring to my host, I'd love some data to support your advice. Dozens of sites and many years of excellent support and uptime stands in their plus column for me.

Quote:
Maybe give Suprsidr's Media Block a try to see if it behaves the same in different browsers:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock

This looks interesting. Thnks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-04-01 19:50

If you've had good luck with them, great. I've just never had good luck with cut-rate hosts (the cheaper they make the hosting plans the more accounts/sites they have to host on one server just to pay for the hardware and overhead costs). Although they appear to have reasonable limits in place and don't appear to be one of those "Unlimited" disk "unlimited" bandwidth type hosts.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Thu, 2010-04-01 20:23
nivekiam wrote:
If you've had good luck with them, great. I've just never had good luck with cut-rate hosts (the cheaper they make the hosting plans the more accounts/sites they have to host on one server just to pay for the hardware and overhead costs). Although they appear to have reasonable limits in place and don't appear to be one of those "Unlimited" disk "unlimited" bandwidth type hosts.

Ah - Your advice is based on no direct experience. I have been through a lot of hosts. Nobody has ever met their reliability and service stats for me. Ever.

Back to relevant things - none of the adjustments seem to have eliminated the problem. OTOH, mediaBlock slid into place so easily that I just abandoned WPG2. Only problem is that this is not a general fix for me until I build a widget so that no code is needed when deploying. We do not allow that for client-editable systems.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-04-01 21:10

@Brandon, if you are looking for an easy way to embed gallery try my easy embed tool.
MediaBlock is more for placement of gallery segments outside of gallery.
And the minislideshow is also a great replacement for the imageblock there's an easy embed tool for that too.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Thu, 2010-04-01 21:34

Those are good tools but the task at hand is to get a gallery teaser into a WP front page. MAry wants folks to wander into the gallery and that is exactly what the random block does for her! I do not want to spend too much time in WP code that works. As it is, putting php into the WP theme rather than dragging a widget is a risk from a non-tech user POV. And they are going to have to call me if they want the block in a different place on the sidebar.

BTW, the entire deployment was to verify config in mediaBlock.php, copy it to the appropriate loccation, then steal the code for the first example and strip out most of the parameters. Done. Simple. I think it works.

Generally, I find that leaving gallery standalone and linking onto it has served for the websites where gallery has been an important part of the mix. I feel I am taking more advantage of the G2 team's excellent dev/testing by letting them format as much of the gallery presentation as possible.

I am able to give non-technical clients all the tools and training to place gallery images wherever in the site they want without a great deal of code that I (propeller-head) need to support.

For total integration, I agree embedding is theoretically cleaner and more elegant. When I switch to G3 I plan on considering the embed route. In theory, I should be able to just throw all the models/views/controllers into my own Kohana-based CMS and awaay we go. In theory. We continue to use G2 until the theory maps to deployment :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-04-01 21:40

Did you or can you try Gallery's image block on a non-WP page and see if it loads the first time without having to refresh?

Have you tried clearing Gallery's cache? Have you watched the http headers while trying to load the page to see if the Gallery block appears to be getting loaded at all?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here