Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Wiwimod
by cath22 on 2011/11/26 16:21:01

Ok, have made the changes, indeed all the warnings are gone except for the three still remaining;

Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in file /class/smarty/Smarty.class.php line 192

At first I removed the whole if statement in header.php, which made more errors. After reinstating the defined lines, everything was fine again.
Note: then the above messages didnt show a path to wiwi anymore (just empty) so it might be related a little different.

Just an observation, I saw that in most files there is no closing ?> tag at the end, not sure if that should do anything aswell

The Wiwi build in block/groups tab indeed gives also the names wrong, but the Block function from Xoops itself works good. I thought it would be depricated.

Greetz
Cath
Re: Wiwimod
by skenow on 2011/11/25 22:09:32

Quote:

cath22 wrote:
Yes, Thanks Steve, this definitively solves the problem, I can open the blocks to the homepage again normally.

And I'll try with this to give you more feedback since I am a happy user from wiwimod/simplywiki.

With debug on I still can see following messages:

Warning: include_once(../../mainfile.php) [function.include-once]: failed to open stream: No such file or directory in bestand /modules/simplywiki/header.php regel 15
Warning: include_once() [function.include]: Failed opening '../../mainfile.php' for inclusion (include_path='.:/usr/local/lib/php') in bestand /modules/simplywiki/header.php regel 15


You'll need to make a few additional changes -

in blocks/swiki_blocks.php and blocks/wiwimod_recent.php remove the line that includes header.php
le="color: #000000"><?php include_once ICMS_ROOT_PATH . '/modules/' . $wikiModDir . '/header.php';


in header.php, remove the if {} statement immediately after the line that includes mainfile.php with
le="color: #000000"><?php defined('ICMS_URL') || define('ICMS_URL', XOOPS_URL); defined('ICMS_ROOT_PATH') || define('ICMS_ROOT_PATH', XOOPS_ROOT_PATH);


Quote:

These 3 are listed aswell, upon clicking on the function include I get following message : The requested URL /test1/modules/simplywiki/function.include was not found on this server.

Therefore I can say these are related with simplywiki

Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in file /class/smarty/Smarty.class.php line 1923


Those probably are due to the above, also

Quote:

And further some notices:

Notice: Constant ICMS_URL already defined in bestand /modules/simplywiki/header.php regel 18
Notice: Constant ICMS_ROOT_PATH already defined in bestand /modules/simplywiki/header.php regel 19


These should go away if you use the updated code I posted in my previous message (edited the original snippets)

Quote:

Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_TITLE - assumed '_MI_SWIKI_PAGERESTORE_TITLE' in bestand /modules/simplywiki/xoops_version.php regel 335
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_CAPTION - assumed '_MI_SWIKI_PAGERESTORE_CAPTION' in bestand /modules/simplywiki/xoops_version.php regel 336
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_DESC - assumed '_MI_SWIKI_PAGERESTORE_DESC' in bestand /modules/simplywiki/xoops_version.php regel 337
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_SUBJECT - assumed '_MI_SWIKI_PAGERESTORE_SUBJECT' in bestand /modules/simplywiki/xoops_version.php regel 339
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_TITLE - assumed '_MI_SWIKI_GLOBALPAGERESTORE_TITLE' in bestand /modules/simplywiki/xoops_version.php regel 344
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_CAPTION - assumed '_MI_SWIKI_GLOBALPAGERESTORE_CAPTION' in bestand /modules/simplywiki/xoops_version.php regel 345
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_DESC - assumed '_MI_SWIKI_GLOBALPAGERESTORE_DESC' in bestand /modules/simplywiki/xoops_version.php regel 346
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_SUBJECT - assumed '_MI_SWIKI_GLOBALPAGERESTORE_SUBJECT' in bestand /modules/simplywiki/xoops_version.php regel 348


Those are present in the English files and need to be added to the other translations.

Quote:

Might I see other things I will report back, and if I find the time I'll update the Dutch language since that is missing a lot aswell, also giving some messages in the debug I guess.

But a important thing that is fixed is the Preferences section that first only worked with the legacy layout in admin.
Keep up the good work.

Greetz
Cath


The blocks/groups tab in admin won't work on X2.5 - I plan to take it out, anyway.

Thanks for the feedback.
Re: Wiwimod
by cath22 on 2011/11/24 13:19:35

Yes, Thanks Steve, this definitively solves the problem, I can open the blocks to the homepage again normally.

And I'll try with this to give you more feedback since I am a happy user from wiwimod/simplywiki.

With debug on I still can see following messages:

Warning: include_once(../../mainfile.php) [function.include-once]: failed to open stream: No such file or directory in bestand /modules/simplywiki/header.php regel 15
Warning: include_once() [function.include]: Failed opening '../../mainfile.php' for inclusion (include_path='.:/usr/local/lib/php') in bestand /modules/simplywiki/header.php regel 15

These 3 are listed aswell, upon clicking on the function include I get following message : The requested URL /test1/modules/simplywiki/function.include was not found on this server.

Therefore I can say these are related with simplywiki

Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Filename cannot be empty in file /class/smarty/Smarty.class.php line 1923
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in file /class/smarty/Smarty.class.php line 1923

And further some notices:

Notice: Constant ICMS_URL already defined in bestand /modules/simplywiki/header.php regel 18
Notice: Constant ICMS_ROOT_PATH already defined in bestand /modules/simplywiki/header.php regel 19

Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_TITLE - assumed '_MI_SWIKI_PAGERESTORE_TITLE' in bestand /modules/simplywiki/xoops_version.php regel 335
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_CAPTION - assumed '_MI_SWIKI_PAGERESTORE_CAPTION' in bestand /modules/simplywiki/xoops_version.php regel 336
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_DESC - assumed '_MI_SWIKI_PAGERESTORE_DESC' in bestand /modules/simplywiki/xoops_version.php regel 337
Notice: Use of undefined constant _MI_SWIKI_PAGERESTORE_SUBJECT - assumed '_MI_SWIKI_PAGERESTORE_SUBJECT' in bestand /modules/simplywiki/xoops_version.php regel 339
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_TITLE - assumed '_MI_SWIKI_GLOBALPAGERESTORE_TITLE' in bestand /modules/simplywiki/xoops_version.php regel 344
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_CAPTION - assumed '_MI_SWIKI_GLOBALPAGERESTORE_CAPTION' in bestand /modules/simplywiki/xoops_version.php regel 345
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_DESC - assumed '_MI_SWIKI_GLOBALPAGERESTORE_DESC' in bestand /modules/simplywiki/xoops_version.php regel 346
Notice: Use of undefined constant _MI_SWIKI_GLOBALPAGERESTORE_SUBJECT - assumed '_MI_SWIKI_GLOBALPAGERESTORE_SUBJECT' in bestand /modules/simplywiki/xoops_version.php regel 348

Might I see other things I will report back, and if I find the time I'll update the Dutch language since that is missing a lot aswell, also giving some messages in the debug I guess.

But a important thing that is fixed is the Preferences section that first only worked with the legacy layout in admin.
Keep up the good work.

Greetz
Cath
Re: Wiwimod
by skenow on 2011/11/22 15:14:41

SimplyWiki is meant to be cross-platform - but I don't always get much feedback from the XOOPS users, so things can get missed.

Open each of the .php files in the blocks folder (swiki_blocks, wiwimod_recent, wiwimod_showpage and wiwimod_toc) and add the following at the top of the file

le="color: #000000"><?php defined('ICMS_URL') || define('ICMS_URL', XOOPS_URL); defined('ICMS_ROOT_PATH') || define('ICMS_ROOT_PATH', XOOPS_ROOT_PATH);


This should take care of your problems. Let me know

I added a condition to the define so you won't get notices about defining the constant more than once
Re: Wiwimod
by redheadedrod on 2011/11/22 4:32:57

Looks like you downloaded this for a different CMS.. You need the Xoops version. You have the ICMS version.

Who's Online

196 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits