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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 137
  • Total: 138
  • @rjen

Syntax Error SOLVED

Started by stipchaser, January 04, 2016, 08:01:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stipchaser

Hi all I am stuck on this parsing error and it happened just when I was making good progress on a new site I am working on. I have used a few highlighters and I just cant figure this out. It is now a time issue and I am reaching out at this point if anyone can help it would be greatly appreciated. My apologies if this is not the correct place for this post I am just so spent at this point lol!

Parse error: syntax error, unexpected 'name' (T_STRING) in .../Themes/default/index.template.php on line 115

106: window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
107: }
108: addLoadEvent(fPmPopup);' : '', '
109: var ajax_notification_text = "', $txt['ajax_in_progress'], '";
110: var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
111: // ]]></script>';
112:
113: echo '
114: <meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? ','

115: <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '

116: <title>', $context['page_title_html_safe'], '</title>';
117:
118: // Please don't index these Mr Robot.
119: if (!empty($context['robot_no_index']))




Well I have got the site to come back up but still have the block issue as shown in this image.

This is what my admin center looks like now lol! I feel like such a noob!


illori

that block of code should look something like this

echo '
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>


make sure yours matches that.

stipchaser

#2
Right on thanks dude I'll give it a shot. Its weird its like some setting or corrupted code shifted everything over and down resulting in the panels not lining up and the blocks unable to be seen. They are there but a few layers down and underneath the main body area and what ever I do it will not allow me to acquire that space back on the sides where the panels are located.

EDIT:

Yeah, I believe I screwed things up and should most likely re-install TP again. Not sure how I did this but I cannot get the panels to cooperate and display properly. I know it must be an area that displays the dimensions on an index file but do not know where to look for it.


UPDATE 1-5-16

I realize we are all busy but I personally have an obligation to resolve its issues. I feel as this is a template issue meaning the picture above where the blocks are clearly still there but the body is covering them; I do not know where to find that area of code in all of the site templates. With that being said I have had the site for 8 years and it has articles from the previous site. What I do know is that there is a good chance that if I could locate that area of the code I could resolve this.

If anyone has any ideas or could steer me in the right direction it would be greatly appreciated. I would hate to do a clean install of both SMF and TP but the time for that decision is getting real close.

Thanks

SMF 2.0.11
TP 1.1
All themes

lurkalot

#3
Got a link please.

Was this a upgrade from a previous version of SMF and Tinyportal?

If you're having trouble sing the Tinyportal admin panel, the you can use a address like this to enable you to get in and turn of the offending block/s

http://www.yoursite.com/index.php?action=admin;noblocks

stipchaser

unifiedgamerz.org

I was working on trying to customize the header when this first happened on the main index template for the default theme. The blocks are there but they are pushed under the body of the page. You can see the edges of them. That happened and the admin center now only gives me the old side menu view lol! I still have all the controls but not the new view. I just cannot find where that area of the code is written.

Thanks Lurkalot

This website is proudly hosted on Crocweb Cloud Website Hosting.