Problem with WPG2 Gallery2 Rewrites Status: "On" change to "off"
calvin13
Joined: 2007-10-03
Posts: 4 |
Posted: Wed, 2007-10-03 10:46 |
Hi I have installed Wordpress 2.3 + Gallery 2 + WPG2. All things seems to be correct, but sometimes in the menu of WPG2: Gallery2 Rewrites the WPG2 Gallery2 Rewrites Status change: "On" to "off" an all my URL directions change. Why the status change? My web: http://u2fanlife.com/fotos-u2-fotos-bono-fotos-conciertos-u2 This is my WPG2 Validation Check: Valid Wordpress Compatible? Success Thanks!!!Gallery2 Rewrites Status change: "On" to "off" |
|
Posts: 492
They *should* only change to off for a few seconds and then go back on. This is because we had to deal with the way that WordPress does its rewrites (which is terribly, from a developer's point of view...)
After any changes to permalinks or a change to the embedded page's page slug, G2 URL rewrites are temporarily disabled and a WordPress cron job is scheduled to reactivate them after the WordPress rewrite array finishes populating. The WordPress cron job is not a classic *nix cron job; it is handled internally by WordPress.
If your URL rewrite is staying off instead of coming back on after a few seconds, I'm wondering if WordPress' cron jobs aren't working right on your server configuration?
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 4
Thanks capt_kirk!
I will check WordPress' cron jobs.
How can i know is it Ok with WP cron jobs?
thanks!
Posts: 1378
Unfortunately the WP Cron is internally controlled and does not have (as far as I know) any UI to check what is scheduled or not.. It does sound like your WP Cron system is not working thus why when you change Permalinks, WPG2 enters a SAFE rewrite mode because it has no way to detect what permalinks have changed so it can reconfigure the correct internal URL's. (Either that or your Cron is very very slow) ;)
____________________________________
Wordpress / Gallery2 (WPG2) Author
Posts: 492
FYI, URL rewrites will also automatically go into safe mode (off) EVERY time you deactivate and reactivate WPG2 from the Plugins Management tab. This is because rewrites cause lots of problems, and we want to make sure that your embedded gallery is working before you turn rewrites back on. You should get a warning on the WPG2 Validation page about this.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 3
@ozgreg: Can you provide anymore information regarding WP Cron? I'm having the same trouble with the rewrites turning off spontaneously and not coming back on. I would like to solve the issue, but have never heard about WP's cron system. Is there any website/support form, etc. that talks about this WP feature?
Thanks for your help,
DaveE
Posts: 1378
WP Cron is an internal job scheduler inside WP CORE, unfortunately it does not have a UI so I am not sure if we can even see a log of what it is doing..
In another thought, Do you run some kind of caching plugin? In another thread someone found that their WP caching plugin was also resetting the G2 rewrites..
I will try to see if I can find something that logs WP Cron events, but these events should only happen when your WPG2 Page slug changes, or your WP Permalink settings get changed..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 3
Thanks for the quick response.
Yes, I understand that WP Cron is part of the WP Core. We aren't using any kind of caching plug-in. In our case, the rewrites have turned off even though we have not modified the WPG2 slug or WP Permalinks. I've have tried running the site with Gallery's Performance Tuning/Acceleration both on and off and that doesn't appear to make a difference either. What makes figuring this out so difficult is that the rewrites seem to turn off so spontaneously. It might be impossible to really debug this issue.
Thanks again for your help. We'll just keep flipping the switch back on after it turns off
DaveE
Posts: 31
Hi. I have this problem on a clean install of WP2.5 and WPG2. The gallery itself is older. WPG2 turns off rewrites then gives an error that they're turned off in the rewrites menu.
Posts: 3
Hi Jivyb,
Unfortunately, WPG2 isn't yet compatible with WP 2.5. You can read more about it here: http://gallery.menalto.com/node/67933.
Sorry for the bad news,
DaveE
Posts: 1378
3.05 is almost ready for release and will have the ability to generate an audit trail of events to trap why your switch is getting reset..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo