Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other Issues
Author Message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Sun Apr 12, 2009 6:44 am Reply with quote

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
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Apr 12, 2009 8:45 am Reply with quote

Any errors displayed on screen, or in the DB log?
 
View user's profile Send private message
dad7732







PostPosted: Sun Apr 12, 2009 9:15 am Reply with quote

I just turned the error log on, will report back.

Reporting back: No errors in log.
 
dad7732







PostPosted: Sun Apr 12, 2009 9:26 am Reply with quote

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
New Member



Joined: Nov 27, 2005
Posts: 21
Location: Redding

PostPosted: Sun Apr 12, 2009 3:54 pm Reply with quote

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.
 
View user's profile Send private message
dad7732







PostPosted: Sun Apr 12, 2009 5:02 pm Reply with quote

The docs that installed with the distro bits don't display and neither do any I create.

Cheers
 
rystan







PostPosted: Sun Apr 12, 2009 5:42 pm Reply with quote

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







PostPosted: Sun Apr 12, 2009 6:00 pm Reply with quote

Yes
Yes, all domains (6) running RN 2.3.01 experience the same thing
Last line really not relevant.

Cheers
 
jakec







PostPosted: Mon Apr 13, 2009 2:53 am Reply with quote

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

PostPosted: Mon Apr 13, 2009 6:12 am Reply with quote

Sorry to be so late to this "party". Sad 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! 
View user's profile Send private message Visit poster's website
dad7732







PostPosted: Mon Apr 13, 2009 6:15 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:20 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:25 am Reply with quote

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 ... Sad

Cheers
 
dad7732







PostPosted: Mon Apr 13, 2009 6:36 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:43 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:48 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:50 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 6:53 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 7:01 am Reply with quote

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. Wink
 
dad7732







PostPosted: Mon Apr 13, 2009 7:15 am Reply with quote

I'll pass this on to Verio but I don't see much luck in an answer ..

Thanks
 
dad7732







PostPosted: Mon Apr 13, 2009 7:31 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 10:18 am Reply with quote

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 .. Smile

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 ... Cool
 
dad7732







PostPosted: Mon Apr 13, 2009 11:42 am Reply with quote

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







PostPosted: Mon Apr 13, 2009 11:49 am Reply with quote

I think the shortcut should be: http://www.MYSITE.org/modules.php?name=Legal&op=lgl_contact
 
dad7732







PostPosted: Mon Apr 13, 2009 1:37 pm Reply with quote

May be but that's not what shows up as the shortcut. I can change it in the docs, easy 'nuff.

Cheers
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©