TinyPortal

Development => Support => Topic started by: rumboogy on July 12, 2007, 11:33:37 AM

Title: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 11:33:37 AM
Actually, the only problem I am having is viewing my site(s) from my work computer. My regular SMF galleries (non-ported) work fine...only the ones with TinyPortal.

When I try and access the page, I get a blank page, but initially I got an error in reference to the security.php file.

Again, my regular SMF galleries work fine...just the ported ones.

Anyone have any idea why this is occurring? They worked fine for a long time.

This only happens at my work computer...otherwise they are fine.

Wally
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 11:39:35 AM
Actually, here is a snapshot of my javaconsole with the errors...maybe it isn't the security.php file.

What are these errors...obviously they are keeping me from viewing the website.

Here is a snapshot of the errors:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.razorbiker.com%2Fjavaconsole.jpg&hash=e8233904c32c57187bc8c2cef442c22851b47550)
Title: Re: Problems with the Security.php file
Post by: G6Cad on July 12, 2007, 11:42:17 AM
Make sure you have the TinyPortal code added to the Security.php file as described.

Open file:
Sources/Security.php


<search for>
Code:

// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;

</search for>

<add after>
Code:

// TinyPortal
TPortal_init();

</add after>
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 11:54:04 AM
Thanks G6 for the reply, but that code is there....here is a snippet from my security.php file:

Quote// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
   global $user_info, $txt, $context;

   // TinyPortal
   TPortal_init();

   // Luckily, this person isn't a guest.
   if (!$user_info['is_guest'])
      return;

   // People always worry when they see people doing things they aren't actually doing...
   $_GET['action'] = '';
   $_GET['board'] = '';
   $_GET['topic'] = '';
   writeLog(true);

   // Just die.
   if (isset($_REQUEST['xml']))
      obExit(false);

   $_SESSION['login_url'] = $_SERVER['REQUEST_URL'];

Any other suggestions based on those Javascript errors...they both refer to TP.

Thanks.

Wally
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 11:59:48 AM
I am pretty sure this happened because I updated to SMF 1.1.3...is that a possibility?

Wally
Title: Re: Problems with the Security.php file
Post by: G6Cad on July 12, 2007, 12:35:41 PM
Quick mod is what generates the error.
Do you have Grudges old Quick mod instaled, or did you have it installed in the past ?
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 12:59:15 PM
No, I don't have that installed...that I know of..I am pretty sure (if not positive I don't have it installed). I think all I have installed on my newest site is SMF 1.1.3, TP 0.98 and SMF Gallery with some block codes inserted.

But no other packages.

Wally
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 01:00:39 PM
Actually I just looked, I also have SMF Links and Custom Profile installed.

My guess is that this site would load for you with no problems.

http://www.razorbiker.com/website

Beware...if you register it is a BIKER SITE.

Wally
Title: Re: Problems with the Security.php file
Post by: G6Cad on July 12, 2007, 02:19:05 PM
Yes it loads just fine for me.
Wasent that the site RebelRose made the theme to ?
Title: Re: Problems with the Security.php file
Post by: rumboogy on July 12, 2007, 02:47:23 PM
Yes...but I have another site on another server that has a generic TP theme and it also does not work:

http://www.wallyjarratt.com/arkansasbiker

And it does not work either...same codes as the one that RebelRose built...so I don't think it was her theme... I just tried loading the site above and got this error on the page...

QuoteDatabase Error: MySQL server has gone away
File: /home/wallyjar/public_html/arkansasbiker/Sources/Security.php
Line: 275

G6...thanks for looking at this...any ideas now. I also got the same javascript errors when looking at the console.

Wally
Title: Re: Problems with the Security.php file
Post by: IchBin on July 12, 2007, 02:54:22 PM
The javascript errors you posted have nothing to do with your site. They are errors that you're getting while at this site.

MySQL error has gone away is something you'll have to talk to your host about. If you're having a problem viewing your site perhaps its something you have set for registered users or admins to see in a custom block or something. I can view your site just fine.