I would like to include the wiki syntax module as an addition to Rep[lacement] Tags. I have been running into an error and the omniciant Google is not providing me with meaningful results to help toward a solution.

I placed wiki.tags.inc in my /reptag folder.
I then downloaded the pear text wiki files:

cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -d Text pear/Text_Wiki/Text

When I attempt to enable Wiki.tags I get the following error:

Fatal error: require_once() [function.require]: Failed opening required 'Text/Wiki/Parse.php' (include_path='.:/usr/local/php5/lib/php') in /home/.plumber/xxxxx/mydomain.com/sites/all/modules/reptag-5.x-1.x-dev.tar/reptag/Text/Wiki.php on line 19

If I don't have the Text Wiki files then it will complain that Pear files are missing.

When I try and re-install Rep[lacement] Tags using the Devel module to see if that will resolve the issue I get the following error:

The following queries were executed
reptag module
Update #1

    * Failed: ALTER TABLE {reptag_vars} DEFAULT CHARACTER SET utf8
    * Failed: ALTER TABLE {reptag_storage} DEFAULT CHARACTER SET utf8

Update #2

    * CREATE TABLE {reptag_storage} ( nid int(10) unsigned NOT NULL, vid int(10) unsigned NOT NULL, body longtext NOT NULL default '', teaser longtext NOT NULL default '', PRIMARY KEY (vid), KEY nid (nid) ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;

Update #3

    * DROP TABLE {reptag_storage}
    * Failed: CREATE TABLE {cache_reptag} ( cid varchar(255) NOT NULL default '', data longblob, expire int NOT NULL default '0', created int NOT NULL default '0', headers text, PRIMARY KEY (cid), INDEX expire (expire) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ 

Update #4

    * CREATE TABLE {reptag_registry} ( module varchar(255) NOT NULL default '', path varchar(255) NOT NULL default '', weight int NOT NULL default '0', roles longtext, enabled int NOT NULL default '0', static int NOT NULL default '0', description varchar(255) NOT NULL default '', PRIMARY KEY (module) ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;
    * DELETE FROM {variable} WHERE name LIKE 'reptag_module_%'

Update #5

    * Rebuild module list ...

Update #6

    * Failed: ALTER TABLE {reptag_vars} ADD language varchar(12) NOT NULL default ''

So it does not look like it is rebuilding the tables. If I try and manually execute the queries I get similar errors.

Any help would be appreciated. Thanks!

Comments

profix898’s picture

The SQL errors are independant of the wiki stuff. Did you have reptag installed before? Did you upgrade from an older version? Is reptag working without the wiki.tags enabled? If not and after several attempts, I suggest that you uninstall the module and remove all db entries manually if necessary (reptag_vars, reptag_registry, cache_reptag and the esp. the line in 'system' about reptag). Then install the module again from the 'modules' (admin/build/modules) page and verify it working before playing with the wiki stuff again.

I'm not sure you got Text_Wiki installed correctly. The usual way to install a pear package is to run 'pear install Packagename' (http://pear.php.net/manual/en/installation.cli.php). And of course you must have PEAR support installed on your server. Checkin out the package from cvs and putting into the reptag folder is not sufficient. (wiki.tags.inc should also be in the modules/reptag/tags folder not in your /reptag folder directly.)

bacchus101’s picture

Thanks for your help.

I went ahead and reinstalled Drupal 5.1 and added Rep[lacement]Tags as the only non-core module.

I put wiki.tags.inc in the "tags" folder and from CLI installed Text_Wiki using: pear install Text_Wiki which created a "Text" folder which I placed in the "tags" folder.

Rep[lacement] tags works fine on its own but when I enable Wiki Syntax I get the same error as I described above.

I spent a large part of today trying to figure out the solution to this and that included installing a "local" pear installation (I am on a shared server @ Dreamhost so I created a pear install off my home dir and then installed Text_Wiki there) and even tried switching back to PHP 4xx so that I could run PHP as an Apache module rather then via CGI (adding my include path to .htaccess)

If you have any other ideas I'd love to hear them.

profix898’s picture

I downloaded Text_Wiki and took a quick rush through the code. It doesnt seem to actually depend on PEAR.php, what means it should be possible to use it without a valid PEAR installation. You only need to change the include paths. You can find an adapted version of Text_Wiki and wiki.tags.inc at http://www.profix898.de/ftp/public/Drupal/RepTag/wiki_tags.zip. Unzip it into the module/reptag/tags directory and enable the module. I didnt have time to test the modifications though, but I suggest you try and comment on everything that doesnt work or behaves abnormally. I wont be at home for the weekend, but I will happily take a look at all your problems on Monday.
Good luck and have a nice weekend.

bacchus101’s picture

The updated file that you posted resolved the issue I was having. Thanks for your help!

bacchus101’s picture

Assigned: Unassigned » bacchus101
Status: Active » Fixed

Everything is working fine so I'll go ahead and close my issue. Thanks again.

http://yousurp.com

Anonymous’s picture

Status: Fixed » Closed (fixed)