TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 09:46:39 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 43
  • Total: 43

Parse error in index.php after TP installation

Started by tabuas, February 15, 2007, 07:39:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tabuas

Hello,

In first place, congratulations for your great work. I've seen what Tiny Portal is capable, and it's not that Tiny as it seems ;)

I choosed SMF+TP to build a site for a project related to an university course.

Everything gone quite well: SMF 1.1.2 installed with no problem, TP 0.9.7.1 upload via packages manager and applied also with no problem.

After installing TP, I got this message:
QuoteTinyPortalÃ,´s table structure is now installed/updated.
Please restart your forum to see the changes.
That's a good new, I supposed! But then when going back to the main page, I got this message:
QuoteParse error: parse error, unexpected $ in /(...)/smf/index.php on line 204

Line 204 and some lines after:
Quotecase 'submit':
            if( !$wgCommandLineMode && !$wgRequest->checkSessionCookie() ) {
               # Send a cookie so anons get talk message notifications
               User::SetupSession();
            }
            # Continue...

I really don't have php programming knowledge, I just know how to cut and paste code while following instructions. I hope someone could help with this problem.

If I should give more details, please let me know.

Thanks in advance.

Nokonium

#1
index.php Line 204 is in the middle of a section that TP inserts, I cannot find the code that you have posted in my install files for either SMF or Tiny Portal.

This is what it should be, from line 198 to line 211 (or so my editor program says):

// Action and board are both empty... maybe the portal page?
if (empty($board) && empty($topic) && $settings['TPortal_front_type']!='boardindex')
{
require_once($sourcedir . '/TPortal.php');
return 'TPortal';
}
if (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex' && (isset($_GET['cat']) || isset($_GET['page'])))
{
require_once($sourcedir . '/TPortal.php');
return 'TPortal';
}
// Action and board are still both empty...and no portal startpage - BoardIndex!
elseif (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex')
{