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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:43:03 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 339
  • Total: 340
  • @rjen

[SOLVED] Parse Error.

Started by Maddog452, December 30, 2008, 07:33:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Maddog452

I have recently found an issue with my Profile area. I had a small "Seniors Moment" and uninstalled TP rather than the mod above it on the list and when I reinstalled it, I got a "Fatal error: Cannot redeclare tpsummary() " the same as the error described in the post at http://www.tinyportal.net/index.php/topic,23536.0.html

I followed this post and again got a similar problem (but didn't want to hijack that post) sich that I now get the error below.

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /XXX/XXX/XXX/Sources/Profile.php on line 2928

While the above listed post solved the problem, I could not find what they did between the before and after files (profile.php) to solve the problem.  It was probably something small like a missing { or a . but I'm not PHP literate enough.

Could someone please look at the attached file and let me know where I have cocked up.

Cheers

Dog

G6Cad

Modification Instructions

Check the part for profile.php and make sure the tp code got added correctly

JPDeni

Definitely look at the Modification instructions and do all of those things, but there's more problem than that. You have lost part of a function.

Your last line is


$row['value'] = $


which isn't even a full line. Delete that line and paste in


$row['value'] = $_POST['options'][$row['variable']];
$context['member']['options'][$row['variable']] = $row['value'];
}
mysql_free_result($request);

// Load up the default theme options for any missing.
foreach ($temp as $k => $v)
{
if (!isset($context['member']['options'][$k]))
$context['member']['options'][$k] = $v;
}
}
}

?>


Then to the TP modifications. Also look at some of your other mods and see if they have anything that needs to go at the end of the Profile.php file.

Maddog452

Thanks Guys

Found lots of double ups in the code and have cleaned it up and it seems to be working.

Cheers