View Full Version : Parse Error Help
Big_J
02-01-2009, 01:34 PM
I need some help figureing out why I am getting a error message.
When in the usercp, clicking on "edit options" gives a blank page with the following error.
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/jdhllcco/hondarebelforum.com/profile.php(4505) : eval()'d code on line 64
I do not where to begin to find the problem, I looked at profile.php and from my limited knowledge I did not see anything that looked "wrong"
Any help would save the rest of my hair..... and beers on me ;)
Lynne
02-01-2009, 02:58 PM
First look at line 4505 in profile.php (that is where the error originates as per your error message). My line 4505:
eval('$HTML = "' . fetch_template($templatename) . '";');
So, it's something to do with the template on line 64 (also per the error). There is a hook right above there, profile_complete, so it could be a modification too. Try disabling your plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php
define('DISABLE_HOOKS', true);
Big_J
02-01-2009, 03:03 PM
I disabled all plugins and products, but it did not fix the error. Below is the section of code where line 4505 just thought it might help if you could see whats there.
Note I put <this is 4505> just so the line in question could be pinpointed
// ################################################## ###########################
// spit out final HTML if we have got this far
if ($templatename != '')
{
// make navbar
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
($hook = vBulletinHook::fetch_hook('profile_complete')) ? eval($hook) : false;
// shell template
<this is 4505> eval('$HTML = "' . fetch_template($templatename) . '";');
eval('print_output("' . fetch_template($shelltemplatename) . '");');
}
Lynne
02-01-2009, 03:50 PM
And what is the template that is being called there (find the one related to edit options)? And then look at that template.
Also, you might try this with your plugins disabled - Create a new style with no parent - Styles & Templates > Style Manager > Add New Style > no parent - then browse the site using that totally default vbulletin style - do you still have the same problem?
Big_J
02-01-2009, 04:26 PM
I found what I think is the template..... usercp_shell
Am I looking for something wrong on line 64?
Thanks a ton
Lynne
02-01-2009, 04:39 PM
Yeah, but be aware that if there are template_hooks being used, then those lines get added also. You could try using a totally default style and see if the error occurs and then compare your template to the default one.
Create a new style with no parent - Styles & Templates > Style Manager > Add New Style > no parent - then browse the site using that totally default vbulletin style - do you still have the same problem?
Big_J
02-01-2009, 04:50 PM
Creating the new style is not going to affect the rest of board is it? Damn I wish I knew more about this stuff, but I am learning as I go I guess..... just always affraid I am going to screw something up.
I created a style and named it test..... when I went in to change styles in my profile the only options I had were:
Use forum default
default
I tried both and still have the same problem with each of those styles. I assumes I would find one lables test, but it was not there.
--------------- Added 1233514633 at 1233514633 ---------------
OK, sorry I am a bone head
When I created the new style I set allow user select to no.......
So now I tried my new style and the problem does not occure in the test style I created.
Does that give me a direction to look to fix my trouble?
Thank You.... Very Much
Lynne
02-01-2009, 05:17 PM
As an administrator, the style should have shown up in the Style Chooser in the bottom left of the page.
Since it works on the default style, that means you have something wrong with your style. I'd start with that one template and go to edit it, hit View History > Compare and see the differences and copy/paste in any code that has changed.
Big_J
02-01-2009, 05:28 PM
There are quite a few differences
Alot of pink areas (text removed from old versions)
Alot of yellow areas (texted changed from old version)
and one green section (text added in new version)
What should I post back into the new version? Any idea?
Thanks
Lynne
02-01-2009, 05:31 PM
I like clicking on the View Side by Side option (on the bottom). It's easier for me to see then what is going on. If Jelsoft updated the code on a line, then you should also.
Big_J
02-01-2009, 05:59 PM
Im not sure I am able to tell what would need to be put back, I'm sure its one of the mods that has caused the problem. could I send you the side by side and let you look at the 2 and see if there is something there.... all this is new & greek to me.
Lynne
02-01-2009, 06:25 PM
What I would do is slowly add some lines to your 'default' style from the 'not working' style and see what lines break it.
Big_J
02-01-2009, 06:26 PM
OK, I will try that. I have to step out for a bit but will post pdated info once I get back to working on it.
Thanks
--------------- Added 1233530995 at 1233530995 ---------------
I have found that the when I add the following section of code to the test style I get the error that I have been getting in the default style. Can you tell if there is something wrong with this section of code?
<tr><td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td></tr>
<tr><td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</tbody>
<if condition="$show['moderation']">
<tbody id="nav_moderation">
<if condition="$show['deleteditems']">
<tr><td class="thead">$vbphrase[deleted_items]</td></tr>
<tr><td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&type=deleted">$vbphrase[threads]</a></td></tr>
<tr><td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&type=deleted">$vbphrase[posts]</a></td></tr>
<if condition="$show['deletedvms']"><tr><td class="$navclass[deletedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&type=deleted">$vbphrase[visitor_messages]</a></td></tr></if>
<if condition="$show['deletedgms']"><tr><td class="$navclass[deletedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=deleted">$vbphrase[group_messages]</a></td></tr></if>
<if condition="$show['deleteddiscussions']"><tr><td class="$navclass[deleteddiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&type=deleted">$vbphrase[group_discussions]</a></td></tr></if>
<if condition="$show['deletedpcs']"><tr><td class="$navclass[deletedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&type=deleted">$vbphrase[picture_comments]</a></td></tr></if>
</if>
<if condition="$show['moderateditems']">
<tr><td class="thead">$vbphrase[moderated_items]</td></tr>
<if condition="$show['moderatedposts']">
<tr><td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&type=moderated">$vbphrase[threads]</a></td></tr>
<tr><td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&type=moderated">$vbphrase[posts]</a></td></tr>
</if>
<if condition="$show['moderatedvms']">
<tr><td class="$navclass[moderatedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&type=moderated">$vbphrase[visitor_messages]</a></td></tr>
</if>
<if condition="$show['moderatedgms']">
<tr><td class="$navclass[moderatedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=moderated">$vbphrase[group_messages]</a></td></tr>
</if>
<if condition="$show['moderateddiscussions']">
<tr><td class="$navclass[moderateddiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&type=moderated">$vbphrase[group_discussions]</a></td></tr>
</if>
<if condition="$show['moderatedpcs']">
<tr><td class="$navclass[moderatedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&type=moderated">$vbphrase[picture_comments]</a></td></tr>
</if>
<if condition="$show['moderatedpics']">
<tr><td class="$navclass[moderatedpics]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpics">$vbphrase[album_pictures]</a></td></tr>
</if>
</if>
<if condition="$show['newitems']">
<tr><td class="thead">$vbphrase[new_items]</td></tr>
<if condition="$show['newvms']">
<tr><td class="$navclass[newvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&type=new">$vbphrase[visitor_messages]</a></td></tr>
</if>
<if condition="$show['newgms']">
<tr><td class="$navclass[newgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=new">$vbphrase[group_messages]</a></td></tr>
</if>
<if condition="$show['newdiscussions']">
<tr><td class="$navclass[newdiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&type=new">$vbphrase[group_discussions]</a></td></tr>
</if>
<if condition="$show['newpcs']">
<tr><td class="$navclass[newpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&type=new">$vbphrase[picture_comments]</a></td></tr>
</if>
<if condition="$show['newpics']">
<tr><td class="$navclass[newpics]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpics&type=new">$vbphrase[album_pictures]</a></td></tr>
</if>
</if>
</tbody>
</if>
<if condition="$show['popups'] AND $show['moderation']">
<tbody id="nav_moderation_popups" style="display:none">
<tr><td class="thead">$vbphrase[moderation]</td></tr>
<if condition="$show['deleteditems']"><tr><td class="$navclass[deleteditems]" nowrap="nowrap"><span class="smallfont" id="nav_deleteditems"><a href="javascript://">$vbphrase[deleted_items]</a> </span></td></tr></if>
<if condition="$show['moderateditems']"><tr><td class="$navclass[moderateditems]" nowrap="nowrap"><span class="smallfont" id="nav_moderateditems"><a href="javascript://">$vbphrase[moderated_items]</a> </span></td></tr></if>
<if condition="$show['newitems']"><tr><td class="$navclass[newitems]" nowrap="nowrap"><span class="smallfont" id="nav_newitems"><a href="javascript://">$vbphrase[new_items]</a> </span></td></tr></if>
</tbody>
</if>
<tbody>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<tr><td class="$navclass[event_reminders]" nowrap="nowrap"><a class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td></tr>
<if condition="$show['paidsubscriptions']">
<tr><td class="$navclass[paid_subscriptions]" nowrap="nowrap"><a class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td></tr>
</if>
<if condition="$show['attachments']">
<tr><td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td></tr>
</if>
</tbody>
$template_hook[usercp_navbar_bottom]
</table>
<!-- / usercp nav -->
--------------- Added 1233579137 at 1233579137 ---------------
I have also found some other errors in the vbimagehost, that show up after a image is uploaded, but I do not think they are related.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.