Get XOOPS XOOPS FAQ Forums News Themes Modules
News World of XOOPS Developers Hacks Modules Themes Archive Submit News

XOOPS vs. Herko Coomans

Make a donation

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Search

Local Support Sites

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Google GUI hacks instant-zero jQuery module news Nordic Olédrion oxygen PageRank security SEO simple-XOOPS sport tag Theme wiki xoops

New Users

Registering user

# 96568

dvsshoescom

Welcome to XOOPS!

Archives

XOOPS Code hosted on SourceForge

phpWiki 1.3.5cvs-1.0.0

Posted by danielblues on 2003/5/29 8:01:39 (6154 reads) | Posted on Modules
phpWiki has been fully converted to a xoops module.

XOOPS features:

Complete xoops integration, except for search.
- module install
- db and db_prefix
- users
- admin
- tested with Xoops 1.3.10 and 2.0.2

Imported from phpWiki CVS (beta code)

Download here.

More info here.

daniel


Printer Friendly Page Send this Story to a Friend Create a PDF from the article


Bookmark this article at these sites

                   

The comments are owned by the poster. We aren't responsible for their content.

Nice work daniel! Thanks for the contribution. Coincidentally, I was ready to install a wiki on my site but now that you've integrated it with Xoops, you saved the day.
Posted: 2003/5/29 17:36 • Updated: 2003/5/29 17:36
Fantastic job! Looks great on your site! Going to try it out this evening.

I noticed you mentioned that search is not yet integrated... I have done this on my toy version so I can send you the files if you like.

Just curious... are you planning to keep up with future releases of phpwiki? Or are the changes isolated enough that I can (mostly) update directly from phpwiki CVS?

A great contribution to the community! Thanks!
Posted: 2003/5/29 18:28 • Updated: 2003/5/29 18:28
I have not tried it yet, but thank you! I am going to translate the documentation in italian on my support site, and it seems the right module to organize it! great job Open in new window
Posted: 2003/5/30 2:46 • Updated: 2003/5/30 2:46
Thanks, it's allways nice to give something back to the community
I will maintain phpwiki xoops module as close to the cvs as possible.
This release is a one month snapshot from the cvs, it's was working so stable in my production sites that I decided to release it with out the very latest code.
CVS update will break the code, but if you can handle some >>>>>>> <<<<<<<< from cvs merge you should be fine.

And yes, if you all ready sorted out search, you can paste it where or at Bluetopia (Thanks). (or I can send you my email)

daniel
Posted: 2003/5/30 4:19 • Updated: 2003/5/30 4:19
Would be glad to see wiki.xoops.org integrated in this site with your module.
Posted: 2003/5/30 5:14 • Updated: 2003/5/30 5:14
This looks very nice, however I have a problem with my site that I don't know how to correct. 9 times out of 10 when I edit a page and submit the changes, I get a 500 error. The dreaded
"The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log"


Does any MySQL guru know what I can do to correct this? The rest of my site works OK, just this module that causes this. I am sure it is something specific to my provider, but not sure what.

The DB resides on a different box than the web site in my providers setup. Do I need to turn on "persistent connections" for the mod maybe? And if so, how to do that? Or any ideas on how to troubleshoot in general?

I opened a ticket with the provider, but would like to be able to give them more information.
Posted: 2003/5/30 7:50 • Updated: 2003/5/30 7:50
Additional information: It actually writes the change, so perhaps it is not the database...the error still happens, but if I return to the page, the change is there. I guess the error is appearing on the refresh?

I am more stumped now.
Posted: 2003/5/30 11:44 • Updated: 2003/5/30 11:44
daniel:

Congratulations! The wiki looks great in your site.

I've been trying to install it since yesterday without success. All it says is "The page cannot be displayed". Any idea?

Happy Xoopsing!
Posted: 2003/5/30 13:42 • Updated: 2003/5/30 13:42
Anonymous
Quote:

And yes, if you all ready sorted out search, you can paste it where or at Bluetopia (Thanks). (or I can send you my email)

I'm afraid I was thinking about a different module when I wrote my post... I have *not* done the search for PHPWiki. Sorry about that... my mistake.
Posted: 2003/5/30 14:53 • Updated: 2003/5/30 14:54
Where did you get the error, when loading the first page?
Did tried you tried the FAQ USE_PATH_INFO?

daniel
Posted: 2003/5/30 17:17 • Updated: 2003/5/30 17:17
danielblues:

I didn't try that yet. I played a while with the files and finally got it "working"... in a sense: some pages gave me error messages, but the main error is I don't see Wiki modularized. I mean, it's all by itself, without the XOOPS frame...

I'll keep trying until I succeed. Thanks for the information.

Happy Xoopsing!
Posted: 2003/5/30 21:01 • Updated: 2003/5/30 21:01
Anonymous
I was able to fix this by implementing the "redirect fix" on lines 763-769. Not sure why I am having issues, I am not on Lycos and the rest of XOOPS redirects ok, but uncommenting line 769 worked.

Hopefully this can help others. Just uncomment the following line:
if (!defined('DISABLE_HTTP_REDIRECT')) define ('DISABLE_HTTP_REDIRECT'true);

Posted: 2003/5/31 11:51 • Updated: 2003/5/31 11:51
I had the same problem, and your fix worked for me. Thanks!
Posted: 2003/5/31 14:27 • Updated: 2003/5/31 14:27
First great work :) it's nice to see good work.

but i have bad news,
I'm using a fresh copy of Xoops 2.02 and i downloaded the phpwiki module installed it as a usual module.
The top page works fine but if I refrence any links, I get a totaly blank page.

Being a good little hacker, I went and turned on PHP debug that show 3 php warnings. all minor.

but when i jump to a phpwiki link,
I get

Quote:

Fatal error: Call to a member function on a non-object in /usr/home/vhost/alphacomplex.info/htdocs/xoops/html/header.php on line 115


The problem is somewhere down the line, $XoopsModule is being set to a boolean value instef of an object.

Not being a Xoops hacker I have no idea how to track that one down, any one have any ideas?
Posted: 2003/6/1 0:51 • Updated: 2003/6/1 0:51
I used phpWiki 1.2 in the past but at some point I gave up on it because phpWiki seemed to be abandoned. If you check the SourceFoge site you will see that there is no activity there for a long time. Is phpWiki in active development again? I am asking because if the asnwer is no then it may not be worth porting to Xoops a dead application. I was very pleased with phpWiki 1.2 so I would be more than happy if phpWiki came back to life.

One question regarding this module, is it possible to have attachements to pages?

Thanks,
Marius
Posted: 2003/6/1 15:57 • Updated: 2003/6/1 15:57
Quote:
I had the same problem, and your fix worked for me. Thanks!


You're welcome. I have a couple of rough spots still like not being able to rake the sandbox, but it seems mostly OK now.

It's a very nice mod!
Posted: 2003/6/1 16:38 • Updated: 2003/6/1 16:38
Did you tried this?

daniel
Posted: 2003/6/2 9:29 • Updated: 2003/6/2 9:29
Thanks, added that to the FAQ

daniel
Posted: 2003/6/2 9:30 • Updated: 2003/6/2 9:30
Hi,

If you check phpwiki ChangeLog, you will see it's alive and kicking
Couldnt find a phpwiki plugin that can do file attachements.

daniel
Posted: 2003/6/2 9:35 • Updated: 2003/6/2 9:35
Update, you can try this one.

daniel
Posted: 2003/6/2 9:40 • Updated: 2003/6/2 9:40
How to change phpwiki language??

i want set it to use GB2312 code
what are file need modifye?

sorry my BAD english
Posted: 2003/6/2 10:06 • Updated: 2003/6/2 10:06
Quote:
How to change phpwiki language??


i found.

/phpwiki/index.php
line 554

change
Quote:
if (!defined('CHARSET')) define("CHARSET", "iso-8859-1");

to
Quote:
if (!defined('CHARSET')) define("CHARSET", "GB2312");



Posted: 2003/6/2 10:32 • Updated: 2003/6/2 10:35
OK, so there is a plugin that will allow uploads. Not exactly attachements, but more than nothing.

Thanks
Posted: 2003/6/2 17:11 • Updated: 2003/6/2 17:11
My site is xxxxx.xxxxx.com,but in phpwiki the base url is www.xxxxx.com.How to change it into xxxx.xxxx.com?Which config file is like that "wakka.config.php" of Wakka 0.1.1 ?
Posted: 2003/6/3 1:22 • Updated: 2003/6/3 1:22
index.php is the config file in phpwiki.

daniel
Posted: 2003/6/3 3:37 • Updated: 2003/6/3 3:37
Thanks daniel,
my homepage is http://onediamond.drunkbridge.com/xoops/
but in phpwiki,the url is http://www.drunkbridge.com/xoops/modules/phpwiki/
how to modify it?
Posted: 2003/6/3 6:50 • Updated: 2003/6/3 6:50
just going back to basics what is a wiki? Wandering round it seems to be a live document/manual which a group of people can edit online / adding to etc as it grows?

I looked at the xoops wiki but although I could see the index I couldn't workout how you edit/comment on one of the subject titles. Does the webmaster determine which parts of the document are editable? Ie. (and without having installed the mod) do you set-up the links from the front page as subpages in the backend admin section? and only those that have been setup can be edited by users? Is the ideal to setup even blank pages as links, and every page but because the xoops wiki is just starting out it hasn't got links for every section yet?

excuse my ignorance ;)

Andrew
Posted: 2003/6/3 14:59 • Updated: 2003/6/3 14:59
Quote:
just going back to basics what is a wiki? Wandering round it seems to be a live document/manual which a group of people can edit online / adding to etc as it grows?


Yap, that it.
As for the xoops wiki, o better ask on the forum.

daniel
Posted: 2003/6/9 10:33 • Updated: 2003/6/9 10:33
Can think of an easy way to do that, maybe you can do it with the rewrite rules of apache. Any one has other ideas?

daniel
Posted: 2003/6/9 10:33 • Updated: 2003/6/9 10:33
hi Daniel,

the installation is so easy and quick, and i don't know say what to thank you for making this coooool module.

pls take a look at my blog: http://chipal.com/modules/weblog/details.php?blog_id=6

you've done and is doing such a nice work , hopt to keep update and improvement

--
Best regards,
Juno May (ASURA)
Posted: 2003/6/9 22:37 • Updated: 2003/6/9 22:37
Humm!
I hade the same problem but observed that the browesr tryed the url: 198.162.0.11 insted of the corect MyDomain.com

edit and uncoment the line
if (!defined('SERVER_NAME')) define('SERVER_NAME',
'MyDomain.org');

will fix that problem if it is the same as yours try it
Posted: 2003/12/10 10:45 • Updated: 2003/12/10 10:45
Has this been depricated?

I can't seem to download the Xoops Module anywhere!!
Posted: 2004/10/11 8:23 • Updated: 2004/10/11 8:23
I could find it on xoops.org either.
Try here http://phpwiki.sourceforge.net it's the modules home site, I downloaded it from there.
Posted: 2004/11/4 18:38 • Updated: 2004/11/4 18:38
Ooops sorry. The website only has the original PHPWiki not the XOOPS module. I guess I should have at least tried to install the module before I posted my comment :)

Let me know if you find out where to download.
Posted: 2004/11/4 18:51 • Updated: 2004/11/4 18:51
You can get it here.
Posted: 2004/11/13 21:34 • Updated: 2004/11/13 21:34
I have big installation problems.
I installed module on our test intranet site and it worked without any modifications.

When I install module to production intranet site, the module installation goes OK, but when I get to "phpwiki" module it shows me this:
---
Quote:
DB Error: no database selectedDB Error: no database selected...DB Error: no database selectedThis page cannot be displayed due to an internal error.

---

Or in DEBUG mode:
---
Quote:

DB Error: no database selectedDB Error: no database selected...DB Error: no database selectedThis page cannot be displayed due to an internal error.

Notice [PHP]: Undefined index: dbhost in file modules/phpwiki/index.php line 784<br>
Notice [PHP]: Use of undefined constant path - assumed 'path' in file modules/phpwiki/index.php line 808<br>
Notice [PHP]: Constant DEFAULT_LANGUAGE already defined in file modules/phpwiki/index.php line 817<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 111<br>
Notice [PHP]: Undefined variable: pagedata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 112<br>
Notice [PHP]: Undefined variable: hits in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 113<br>
Notice [PHP]: A session had already been started - ignoring session_start() in file modules/phpwiki/lib/Request.php line 403<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 111<br>
Notice [PHP]: Undefined variable: pagedata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 112<br>
Notice [PHP]: Undefined variable: hits in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 113<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 254<br>
Notice [PHP]: Undefined variable: versiondata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 255<br>
Notice [PHP]: Undefined variable: mtime in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 257<br>
Notice [PHP]: Undefined variable: have_content in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 262<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 111<br>
Notice [PHP]: Undefined variable: pagedata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 112<br>
Notice [PHP]: Undefined variable: hits in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 113<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 111<br>
Notice [PHP]: Undefined variable: pagedata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 112<br>
Notice [PHP]: Undefined variable: hits in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 113<br>
Warning [PHP]: extract(): First argument should be an array in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 111<br>
Notice [PHP]: Undefined variable: pagedata in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 112<br>
Notice [PHP]: Undefined variable: hits in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 113<br>
Warning [PHP]: mysql_close(): supplied argument is not a valid MySQL-Link resource in file modules/phpwiki/lib/pear/DB/mysql.php line 185<br>
Error [Xoops]: wikidb_backend_mysql: fatal database error
DB Error: no database selected
(SELECT linkee.* FROM xoops_phpwiki_link, xoops_phpwiki_page AS linker, xoops_phpwiki_page AS linkee WHERE linkfrom=linker.id AND linkto=linkee.id AND linker.pagename='HomePage' ORDER BY linkee.pagename [nativecode= ** ])
in file modules/phpwiki/lib/WikiDB/backend/PearDB.php line 698

---

I already tried a lot different options, checking the setting differences between our test and production environment ..., but still not working (same error always).

Any idea?

Regards, BostjanS
Posted: 2004/12/11 8:45 • Updated: 2004/12/11 8:45
I hopefully resolve the issue.
I just comment those lines in .../lib/WikiDB.php file:
Quote:

// If the database doesn't yet have a timestamp, initialize it now.
if ($this->get('_timestamp') === false)
$this->touch();


I have no idea why this is/was the problem ... but now it's working ...

Thank you ... BostjanSt
Posted: 2004/12/18 12:02 • Updated: 2004/12/18 12:02
This is all well and good but the thing doesn't work does it.

It is badly broken. Anon users can get some access, users can write pages and the admins can't even read the pages.

Admin access is locked.

It's broken.

Unworkable.

I'm very upset as this now means my XOOPS install has officially cost me more hassle than everything else in the whole suit of things I do combined. I'd not mind if an end was in sight for me but I guess the goods of CMS hate me or something.

While XOOPS _is_ good, I'm starting to feel too tightly bound to a system I can't manipulate the content on in the way I want. I feel really frustrated at my inability to get XOOPS to do what I want and I feel stupid becuase it is beyond me how XOOPS actually works (in any deeper code-ish & meaningfull way).

The Wiki seemed like the answer to my prayers.

If I sound bitter it's because I have invested a lot of hope into putting in this wiki and I am massivly disapointed with the results. It is especially bad for me since I've just got though playing with TikiWiki and MidiaWiki and realising what a grand thing a wiki can be.

The other forums http://bluetopia.homeip.net/modules/newbb/viewforum.php?forum=6 seem to keep making noises about in the next update but that is all last years stuff.

Does anyone know of any (real) work still being done on this project or should we place it swiftly into the graveyard for diserted projects?
Posted: 2005/8/1 16:40 • Updated: 2005/8/1 16:40
Hi, in reply to the last comment:
I was encountering the same error, but I have changed path to pear in file /lib/WikiDB/backend/PearDB.php:
--------------
require_once('DB.php'); // Always favor use our local pear copy
----

and added 'LOCK TABLE' to privileges in mysql user db.

It works!

Hope is helpful...
Posted: 2005/11/14 8:06 • Updated: 2005/11/14 8:06