msg# 1
This looks very promising as I have a large "document" with many separate html pages.
But I keep getting a "Module File for Not Found" error. I have reviewed the steps and verified all the directories/names are consistent and in the right place.
What am I missing?
Thanks!
Votes:6
Average:10.00
msg# 1.1
Perhaps you've missed the arrangement of folders.
Check "wraps" folder exists just under modules/
Votes:1
Average:10.00
msg# 1.1.1
That was the obvious thing so I rechecked that several times. My custom name for the directory is "contract"
So I have (under the site root directory):
/modules/contract (which contains the html/modules/wraps from the source .zip)
/xoops_trust_path/modules/wraps (which is the same as the folder from the source .zip)
/xoops_trust_path/wraps/contract (which contains my original html files I would like wrapped)
And I have added the define line in the mainfile.php
Did I get one wrong?
Votes:1
Average:10.00
msg# 1.1.1.1
It looks right.
Other folder under modules/ can harm it.
Try to turn "PHP Debug" on.
Votes:1
Average:10.00
msg# 1.1.1.1.1
I tried cleaning out a bunch of modules I had been testing but am not using (including other wrapping modules). I have left: System, Headlines, NewBB, PiCal, iMenu, Marquee, Formulize, Formulaire, Content, AMS.
PHPDebug gives a bunch of "variable references" messages:
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 490
Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 490
otice [PHP]: Only variables should be assigned by reference in file include/cp_functions.php line 57
Notice [PHP]: Only variable references should be returned by reference in file class/module.textsanitizer.php line 257
Notice [PHP]: Only variable references should be returned by reference in file kernel/module.php line 123
I'll try a fresh install on a less cluttered site and see what happens.
Votes:1
Average:10.00
msg# 1.1.1.1.2
Ok, I did a fresh upload to a different site and it installed fine this time.
The module exists, installs (SQL entries, templates, etc.) and if I click on the Update indexes link it says it has updated the index for the 96 files.
But when I click on the link in the main menu I only see a blank page. Per your FAQ above I did ensure there is an index.html page (basically a table of contents with links to all the others).
The directories are still:
/modules/contract
xoops_trust_path/modules/wraps
xoops_trust_path/wraps/contract
I'm accessing as a webmaster so I should have full access.
PHP Debug gives several instances of the following on the "blank" page:
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 491
Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 239
Votes:1
Average:10.00
msg# 1.1.1.1.2.1
First, you'd better access
XOOPS_URL/modules/contract/index.php/index.html
If it displays correctly, the blank page is generated by "Notices".
Turn "PHP debug" off.
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1
Going directly to that page displays a blank page (with PHP debug on I get similar "Only variable references should be returned by reference in file..." messages).
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1.1
If you put all files in correct paths, the reason must be your server does not allow path_info.
If so, I cannot help you, sorry.
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1.1.1
Ok, I'll check on that.
I have found a way to accomplish my project but this sounds like a much more elegant solution. Thanks for the help!
(And thanks for your other great modules!)
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1.1.2
I verified the server does support path_info. So I guess we're stumped again. Maybe I'll try re-installing again. If you get any ideas please let me know.
Thanks!
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1.1.2.1
I cannot understand why wraps does not work correctly in your environment.
XOOPS core version, php version etc...?
does exist xoops_trust_path/wraps/contract/index.html ?
Votes:1
Average:10.00
msg# 1.1.1.1.2.1.1.1.2.2
Votes:5
Average:10.00