PDA

View Full Version : Log files? Which one would I look to for PHP errors?


briangreul
08-24-2009, 03:23 AM
I am trying to track down a error I believe is template related. I made some modifications to my board. The mods work as intended and the pages display fine.

In the process I broke the inline moderation. No big deal, we don't use it alot, but it would be nice to have it work right.

I get a specific error message that contains nothing other then the offending page when I try to move a thread or do some other inline moderation task. Is there a log that I might look at which would help me identify the offending template?

I suspect that is a minor logic error, or an unintended consequences error. My mods were designed to obscure user identity, avatar, and signatures to guest users. They have succeeded in doing this which lets us open up some content to unregistered users. Privacy is a big deal to my users and this was a way of improving our SEO as well as letting unregistered users get an idea of what we do on our forum.

Lynne
08-24-2009, 03:44 AM
Most errors are logged in the error_logs (assuming you have them on). If you don't know where they are, ask your host.

briangreul
08-24-2009, 12:36 PM
Hmm, yea, we use HostGator and I'll snoop around in our directory and see if I can find them.

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /home/brianpz/public_html/forums/inlinemod.php on line 3869

this is my actual error message. When I've seen this in ASP it is usually a malformed If/Then sequence.

the amusing thing is that my mods were successful on everything and that we broke inline moderation. which is really a moderate nuisance but not a show stopper. My users are pretty well behaved for the most part.

My mod, was to add a snippet of code to areas that display username, online status, avatar (which we allow to be a picture) , and signature. We mostly run a private forum, but wanted to give guests the ability to see some of the site where the conversations aren't private. This also helps our SEO.


AND ($bbuserinfo['userid'] != 0)

This tidbit of code determines that someone is logged in. Probably not the cleanest method, but it works.

I wound up having to modify postbit and postbit legacy, some blog related templates, and a forum hom template. It wasn't that bad, and I'm sharing what I did in case someone else needs something similar.