Author |
Message |
dad7732
RavenNuke(tm) Development Team

Joined: Mar 18, 2007
Posts: 1242
|
Posted:
Sun Apr 12, 2009 6:44 am |
|
Any theme, any domain, the problem is the same. Legal docs do not display, just a blank space. If I Add Document, FCKEditor works as intended and the doc saves successfully but does not display. I can see all of the text in the table with PHPMyadmin ok.
Cheers |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Sun Apr 12, 2009 8:45 am |
|
Any errors displayed on screen, or in the DB log? |
|
|
|
 |
dad7732

|
Posted:
Sun Apr 12, 2009 9:15 am |
|
I just turned the error log on, will report back.
Reporting back: No errors in log. |
|
|
|
 |
dad7732

|
Posted:
Sun Apr 12, 2009 9:26 am |
|
No errors shown with level set to "1". Changed to error level "2" and the following line:
Quote: | April 12, 2009, 10:21 am SQL was: SELECT * FROM nuke_legal_cfg
querycount = 22
April 12, 2009, 10:21 am SQL was: SELECT a.`did`, `doc_name`, `doc_text` FROM `nuke_legal_docs` a, `nuke_legal_text_map` b, `nuke_legal_text` c WHERE a.`did` = b.`did` AND b.`tid` = c.`tid` AND b.`mid` = 2 AND `doc_status` = '1' AND `language` = 'english'
querycount = 23 |
|
|
|
|
 |
rystan
New Member


Joined: Nov 27, 2005
Posts: 21
Location: Redding
|
Posted:
Sun Apr 12, 2009 3:54 pm |
|
is there possibly some uh (forgot the jargon) characters in there that would possibly break the php code? Did you use a word doc or other format to copy/paste or did you just type it in and do the modifications to its style afterwards? Have you tried doing it in a unix-compat txt doc with no punctuation and copy/paste it to see if maybe there was something in your punctuation causing issues?
Just some thoughts, I'm just relearning everything i brain dumped last year. |
|
|
|
 |
dad7732

|
Posted:
Sun Apr 12, 2009 5:02 pm |
|
The docs that installed with the distro bits don't display and neither do any I create.
Cheers |
|
|
|
 |
rystan

|
Posted:
Sun Apr 12, 2009 5:42 pm |
|
Refering to the HowToInstall Doc?
Aside from the legal documentation you've added (or have tried adding) the website functions normally?
Self hosted or paid hosting? Php Version? Apache modules used? Apache Ver? |
|
|
|
 |
dad7732

|
Posted:
Sun Apr 12, 2009 6:00 pm |
|
Yes
Yes, all domains (6) running RN 2.3.01 experience the same thing
Last line really not relevant.
Cheers |
|
|
|
 |
jakec

|
Posted:
Mon Apr 13, 2009 2:53 am |
|
So when you go into Legal Docs are the titles displaying?
Also if you try to edit one of the docs does that display correctly? |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Apr 13, 2009 6:12 am |
|
Sorry to be so late to this "party". Since different people have different ideas on where to place the legal menu, I made it so the menu ends up in the constant LGL_MENU_HTML. You must place this where you want to see it within your respective theme. You should be able to see the menu in RavenIce. Also look at the RavenIce themefooter() function to see how to do it.
Sorry that this hasn't been documented. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:15 am |
|
jakec wrote: | So when you go into Legal Docs are the titles displaying?
Also if you try to edit one of the docs does that display correctly? |
Yes and No .. and when I Add Document, it also doesn't display. I took .htaccess out of the picture so that's not it. Doesn't display in Firefox or IE 6, so that's not it either. AdBlock Plus is disabled and so on. The DB Tables are showing the text as well.
Cheers |
|
|
|
 |
montego

|
Posted:
Mon Apr 13, 2009 6:20 am |
|
dad7732, can you PM me a admin login with Legal Module access so that I can check. I need to see what exactly you mean by "doesn't display". Thanks. |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:25 am |
|
Montego: I grepped for LGL_MENU_HTML and it is nowhere to be found. Now what? There is no HTML file generated anywhere when I add a document. At a complete loss here ...
Cheers |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:36 am |
|
I can't add anyone in as admin as someone else here reported the same error. When I fill out the information and "Add Author" I get a blank page and the new author isn't actually added in. |
|
|
|
 |
montego

|
Posted:
Mon Apr 13, 2009 6:43 am |
|
That constant is in themes/RavenIce/theme.php as well as fisubice in the 2.3.x release of RN. If you are not seeing it, perhaps you have broader issues than this? Sure sounds like it.
I cannot replicate this. By looking at your site, its obvious to me that there is a PHP error somewhere. Did you try setting $display_errors to true in config.php? Something is definitely stopping the generation of code. |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:48 am |
|
I'll have to enable that in config. But I did set error level to "1" in rnconfig and the DB log showed nothing as I clicked the document links. I'll try the $display and see what happens.
Be back shortly. |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:50 am |
|
Ok, found it in the theme.php, dunno why grep didn't.
Code:echo '
<div style="clear: both"></div>
<div id="footer">
' . LGL_MENU_HTML . '
<p>Theme by: <a href="http://nukecoder.com">nukecoder.com</a></p>
';
|
|
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 6:53 am |
|
Ok, here ya go .. the error:
Code:Fatal error: Call to undefined function: ctype_digit() in /<path>/classes/class.legal_document.php on line 104
|
|
|
|
|
 |
montego

|
Posted:
Mon Apr 13, 2009 7:01 am |
|
I would give this error to your host. There is no good reason not to have PHP compiled with the ctype extensions. These are far more secure and faster for these types of checks over regex.
This is possibly why rystan asked you for your environment above.  |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 7:15 am |
|
I'll pass this on to Verio but I don't see much luck in an answer ..
Thanks |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 7:31 am |
|
After reading up on ctype extension, PHP has to be re-compiled with:
--enable-ctype
We'll see what happens with Verio, otherwise I'll just do without a legal document(s).
Cheers, will report back. |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 10:18 am |
|
Well, my guru Son fixed things ... ahh dear old Dad calls on Son "again" ... At any rate, all he had to do was to uncomment:
extension=ctype.so
Located in the PHP4/extensions.ini file and then restart the server.
It all works now ..
Cheers
Note: I guess I'm the only one that doesn't know this (I do now) that to find out what's enabled in PHP:
server# php -m
Will give you a list. I feel confident that at least ONE person may benefit ...  |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 11:42 am |
|
Ok, now that this is fixed, we have an issue that popped up. In the various legal docs, several instances call for contacting the webmaster. When clicking those links, the page comes back to the original page and no form, etc. IOW, it doesn't work to contact the webmaster. In "General Options" all of the information is correctly entered and saved.
The link shortcut is:
Code:http://www.MYSITE.org/modules.php?name=Legal&op=contact
|
Cheers |
|
|
|
 |
jakec

|
Posted:
Mon Apr 13, 2009 11:49 am |
|
|
|
 |
dad7732

|
Posted:
Mon Apr 13, 2009 1:37 pm |
|
May be but that's not what shows up as the shortcut. I can change it in the docs, easy 'nuff.
Cheers |
|
|
|
 |
|