Reggie Thomson’s Diary

Diary of a Digital Photographer

June 1st, 2007

Best to uninstall gengo - not deactivate it

I was having problems with my test website after deactivating the gengo plug-in. Whenever I clicked on a link, I got a “Woops - the server tried all options but could not find the page you requested” (or similar) message.

To solve it, I reactivated gengo (this meant that the admin panel disappeared - blank page because I haven’t enabled phperrors). I then used phpmyadmin to put the gengo plug-in as the last in the list in “active_plugins” on the table “wp-options”. This allowed me to navigate to the “gengo” page and perform an “uninstall”, which simultaneously deactivated the plug-in. I now have all my permalinks available again.

May 30th, 2007

Gallery2 and Gengo problems

When I activate the plug-in “gengo” after activating “geo”, “wp-amazon”, “wp-contact-form” and “wpg2″ (which all seem to work prior to activating gengo), I get the following error (in the admin page):

Call to undefined function get_currentuserinfo() in /wordpress/wp-content/plugins/gengo/gengo.php on line 1080

I then go the phpmyadmin and edit the “active_plugins” on the table “wp_wordpress_options”, putting the gengo to the last item in the list. This seemed to solve the problem in wp-admin.

However, the site itself gets the error:

Call to a member function wp_rewrite_rules() on a non-object in /wordpress/wp-includes/classes.php on line 33

Also, on visiting the wpg2 admin page, the following error shows:

Checking System Status…

Warning: main(/tmp/gallery2/embed.php) [function.main]: failed to open stream: No such file or directory in /gallery/embed.php on line 3

Fatal error: main() [function.require]: Failed opening required ‘/…/gallery2/embed.php’ (include_path=”) in /gallery/embed.php on line 3

Oops. I didn’t follow the instructions in the readme.txt file

3. Move the file “wp-gallery2.php” from the /wpg2/root/ directory to your wordpress root directory, the directory that contains wp-config.php.

The gallery problems seem to be in gallery itself, not in WordPress. For the moment, I will disable both gengo and gallery2 (wpg2).

May 3rd, 2007

WordPress plug-ins that don’t work with gengo

The following plug-ins do not appear to work with gengo 0.9 (multi-language plug-in) and WordPress 2.1.3:

geo 1.9.1
organizer 1.2.1
wp-amazon 1.3.2
wp-contact-form 1.4.3
January 24th, 2007

curl_init() in MyTube plug-in on Windows Apache/PHP

The next error in the upgrade from WordPress 2.0.7 to 2.1 is:

Fatal error: Call to undefined function curl_init() in E:\…..\wordpress\wp-content\plugins\mytube\ytube.php on line 216

I am using the MyTube plug-in to insert YouTube videos on my blogs.

The PHP manual for CURL states:

Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.

On my Apache 2.0.54 / PHP 5.2.0 / MySQL 4.1.22 windows XP system, that meant copying the two files from “\Program Files\PHP5\” to “\Program Files\Apache Group\Apache2\modules\php\”

This did not work. I then tried to move them into “\Program Files\Apache Group\Apache2\bin\” but they were already there!

From the phpinfo file (which I permit only to a logged-in administrator user on my webserver because it leaks the MySQL passwords), I noted that the php.ini file still had the line:

include_path = “c:\program files\php4;c:\program files\jhead”

when the new version of PHP was in the directory “c:\program files\php5″.

Rectifying this also failed to remove the problem.

I tried stopping and restarting Apache, with no success.

I notice my online phpinfo() reveals that

curl

CURL support enabled
CURL Information libcurl/7.13.1 OpenSSL/0.9.7f zlib/1.2.2.2 libidn/0.5.15

The solution was to enable the module in php.ini by uncommenting the line:

extension=php_curl.dll

and then restarting Apache.

This is not really an upgrade problem - I guess I only noticed it when I uploaded the recent data from online to the offline site, and then upgraded WordPress.

January 18th, 2007

Too many spams slipping through Akismet - added Bad Behaviour

I’ve had a few spam comments slipping through the Akismet filters, so I’ve decided to add Bad Behaviour. I’ll need to tidy up the footer, though. To be honest, I don’t have many comments on my blogs, so I could probably disable them completely.

January 15th, 2007

Upgrading to WordPress2.0.6 - Gengo error - blank page for French

I’ve upgraded my WordPress test website to WordPress2.0.6.

Now, the French language page is blank.

I enable PHP errors to be visible by updating the .htaccess to include:

php_flag  display_errors  on

The error is reported as

Fatal error: Class ‘CachedFileReader’ not found in /…./wp-includes/wp-l10n.php on line 67

A local search of the contents of all the files on the wordpress directory gave this clue in wp-content/plugins/gengo/readme.txt

= I get “Fatal error: cannot instantiate non-existant class cachedfilereader” =

You have to set WPLANG in your wp-config.php file to be the default language locale.

I edit config.php to put the default language to English


// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', 'en');

And everything works (even though there is no corresponding en.MO file in the wp-includes/languages directory).

January 15th, 2007

Wordpress 2.0.6 updated - Audioplayer plug-in stuck on “buffering”

I’ve just updated to Wordpress 2.0.6.

There didn’t seem to be any upgrades to the database this time.

I notice that Audioplayer seems not to work properly - it gets stuck in the “buffering” stage and doesn’t start playing.

[audio:test.mp3]

I shall post this and test in MSIE.

Resolved: There was an incorrect setting in the Audio player options.

The correct setting, under “Options” -> “Audio Player” -> “Audio files directory” should be “/wp-content/uploads/audio”.

Note: I use this so that I can upload audio files using the Organiser plug-in.

December 27th, 2006

Gengo giving a database error

I’ve updated another blog, and get the following error


WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT category_nicename AS original, sanitised FROM wp_chinese_categories c INNER JOIN wp_chinese_cat2syn syn ON c.cat_ID = syn.cat_id WHERE c.category_nicename IN ('classes') AND syn.language_id =....

I thought it was an Ultimate Tag Warrior problem, but it is just a Gengo installation problem - I had the plug-in activated, but hadn’t set the default languages.

December 26th, 2006

Current list of plug-ins used with WordPress

Plugin Version Description
Adsense-Deluxe 0.8 Place Google AdSense ads in your WordPress Posts. Requires WordPress 1.5 or higer. For complete usage and configuration click on AdsenseDeluxe under the “Options” menu. By Acme Technologies.
Akismet 1.2.1 Akismet checks your comments against the Akismet web serivce to see if they look like spam or not. You need a WordPress.com API key to use this service. You can review the spam it catches under “Manage” and it automatically deletes old spam after 15 days. To show off your Akismet stats just put <?php akismet_counter(); ?> in your template. By .
Audio player 1.2.3 Highly configurable single track mp3 player. By Martin Laine.
Code Auto Escape 2.0 Automatically escape code within <code>…</code> tag By Priyadi Iman Nurcahyo.
Dean’s Code Highlighter 1.1 this plugin using Geshi to highlight source code in your posts. . By Dean Lee.
DupPrevent 1.0 DupPrevent eliminates duplicate content from google index. For comments and feedback click here. By WPSEO.COM.
Emotions 1.9 在用??注中添加表情符号 By Xenium & andot.
Event Calendar 3.1.0 Manage future events as an online calendar. Display upcoming events in a dynamic calendar, on a listings page, or as a list in the sidebar. You can subscribe to the calendar from iCal (OSX) or Sunbird. Change settings on the Event Calendar Options screen. By Alex Tingle.
Event Calendar Widget 3.1.0 Adds sidebar widgets for Event Calendar and Upcoming Events. Requires the EventCalendar and Widget plugins. After activating, please visit Sidebar Widgets to configure and arrange your new widgets. By Darrell Schulte.
FAlbum 0.6.9 A plugin for displaying your Flickr photosets and photos in a gallery format on your Wordpress site. By Elijah Cornell.
Gengo 0.8 Multi-language blogging for WordPress.Licensed under the MIT License, Copyright © 2006 Jamie Talbot. By Jamie Talbot.
Geo 1.9.1 Attaches geographic coordinate information to posts. By Owen Winkler.
Google Search widget 1.0 Adds a sidebar widget to let users search your site with Google. By Automattic, Inc..
Google Sitemaps 3.0b4 This generator will create a sitemaps.org compliant sitemap of your WordPress blog. Configuration Page By Arne Brachhold.
Gravatars 2.6 This plugin provides an administrative interface to control default gravatar options. Registered users can also (optionally) define local gravatar images that will override their gravatar.com default. Copyright 2005 Scott Merrill; Licensed under the terms of the GPL. By Scott Merrill.
My Tube 1.0 Plugin to integrate youtube with WordPress By Vaam Yob.
Organizer 1.2.1 Organizer is a simple plugin to view and manage your upload folder files. By Imthiaz.
Recent Comments Widget 4.0 This plugin will add a list of the most frequent comments posted to your blog. They are gathered in descending order (newest at the top), but then group them together by post title, so that comments from the same post are listed together. The list items will be links to the comments, and will contain the name of the commenter. Derived from the “Top/Recent Commenters” plugin by Scott Reilly (http://www.coffee2code.com/wp-plugins/) By Jared Bangs.
Search Everything 2.5 Oct23 Adds search functionality with little setup. Including options to search pages, attachments, drafts, comments and custom fields (metadata). By Dan Cameron.
Sidebar Widgets 1.0.20060711 Adds “Sidebar Widgets” panel under Presentation menu By Automattic, Inc..
Social Bookmarks 3.1 Social Bookmarks adds a list of XHTML compliant graphic linkss at the end of your posts that allow your visitors to easily submit them to a number of social bookmarking sites. Use plugin options (In menu Options>Social Bookmarks) to configure the plugin. By Apostolos Dountsis.
Subscribe To Comments 2.0.8 Allows readers to recieve notifications of new comments that are posted to an entry. Based on version 1 from Scriptygoddess By Mark Jaquith.
SyntHihol 1.1 Syntax highlighting using Geshi. Sythihal is small, simple, and doesn’t require Enscript installed on the server. By Jay Tuley.
Ultimate Tag Warrior 3.141592 Ultimate Tag Warrior is a tagging plugin, that’s heavy on tag visualisation. I Like Pi! By Christine Davis.
WordPress Database Backup 1.8 On-demand backup of your WordPress database. By Scott Merrill.
WordPress Mobile Edition Redirect mobile devices to a mobile friendly interface. Version 1.8, compatible with WP 1.5.x/2.x. By Alex King.
WP-Amazon 1.3.2 WP-Amazon adds the ability to search and include items from Amazon to your entries. This plugin adds a button called “Amazon” on the post page. Make sure to configure the plugin before using. By Rich Manalang.
wp-cache 2.0.19 Very fast cache module. It’s composed of several modules, this plugin can configure and manage the whole system. Once enabled, go to “Options” and select “WP-Cache”. By Ricardo Galli Granada.
WP-ContactForm 1.4.3 WP Contact Form is a drop in form for users to contact you. It can be implemented on a page or a post. It currently works with WordPress 2.0+ By Ryan Duff.
WP-Translate 2 (September 6, 2005) Translate your site to any language using Google By Scott Hough.
WPG2 2.0 Embeds Gallery2 within Wordpress to share photos, videos and any other Gallery2 content seamlessly into your Blog & Sidebar Content. Documentation, Support Forums. By Ozgreg help and invaluable support by WPG2 Team.
WPG2 Random Image 1.0 Adds a sidebar widget to display a ramdom image from a WPG2 album By Javier Rodriguez.
WPG2 Sidebar Grid Block 1.0 Adds a sidebar widget to display WPG2 gallery By Javier Rodriguez.
WP Paginate .2.2 Create pagination for pages By Jennifer - Scriptygoddess.
December 26th, 2006

Error in live-comment-preview

Looking in my error logs, I see:

PHP Notice: Undefined variable: livePreviewDivAdded in /.../wp-content/plugins/live-comment-preview.php on line 24, referer: http://www.fionamacleod.org/ 

It probably explains why “live-comment-preview” didn’t work, and so was deleted from my installation.