Upon activating WPG2 3.0.2 I got the following error:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/localhost/htdocs/blog/wp-includes/post.php on line 699
Fatal error: Call to a member function get_page_permastruct() on a non-object in /var/www/localhost/htdocs/blog/wp-includes/link-template.php on line 139
Line 699: if ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) {
Line 139: $pagestruct = $wp_rewrite->get_page_permastruct();
I'm guessing this has some something to do with Url Rewrite.
I have URL Rewrite enabled in G2 and using permalinks for WP.
WP version = 2.3.1
Gallery version = 2.3-svn core 1.2.24
API = Core 7.40, Module 3.8, Theme 2.6, Embed 1.3
PHP version = 5.2.4_p20070914-pl2-gentoo apache2handler
Webserver = Apache/2.2.6 (Gentoo) mod_ssl/2.2.6 OpenSSL/0.9.8f PHP/5.2.4_p20070914-pl2-gentoo
Database = mysql 4.0.27, lock.system=flock
Toolkits = LinkItemToolkit, NetPBM, ArchiveUpload, Gd, Exif, Dcraw, ImageMagick, jpegtran, Ffmpeg, Thumbnail
Acceleration = full/900, full/900
Operating system = Linux digi-archive 2.6.22-gentoo-r8 #1 SMP Fri Sep 28 00:11:05 PDT 2007 i686
Default theme = PGtheme
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
Posts: 1378
Sorry but we do not support SVN Builds of Gallery2 or Wordpress and you are running (Gallery version = 2.3-svn core 1.2.24), please use the stable Gallery2 productive release (2.2.3)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 492
What page are you getting those errors on? Does WPG2 validate in spite of those errors? Can you deactivate and reactivate G2 rewrites on the WPG2 -> Gallery2 Rewrites tab in spite of those errors? If so, do you get any errors after deactivating and reactivating rewrites from the WPG2 rewrites tab?
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 1378
Kirk,
FYI The op is running G2 SVN 2.3 which is not going to work with WPG2 3.02 regardless...
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 492
Greg,
Right. It won't work because of the imageblock issue in G2 2.3.
But it looks like the error he's getting is in WP, so I was wondering if he can clear them.
(Is it possible to revert from G2 2.3 to G2 2.2, if he gets the validation issue sorted out?)
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 1378
The simple answer no, the more complex one.. Possible however lots of manual fixes..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 388
Gents,
Thanks for the replies. No worries, I just reverted to previous WPG2 2.x version for now.
Posts: 1378
to answer your Q, Swordfish, the only time I seen errors like that is either the internal WP Permalink array has gone astray and/or for some reason the G2 rewrite is still partly active and WPG2 is trying to insert bad permalink rules..
Regardless of all that, WPG2 3.x is not going to work with the imageframe changes made in SVN/G2.3 , you need WPG2 3.03..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation