got a fatal error on installing mod

Started by kir199123, July 14, 2012, 12:30:36 PM

Previous topic - Next topic

kir199123

installed meta tags mod
http://custom.simplemachines.org/mods/index.php?mod=1871
and installed it on my forum 2.0.2 and got fatal error
u can visit it frm here w
www.spaceforfun.com
pls help me how to revert to normal
i even uninstalled the mod but still the prob persist :(
pls help me getting back normal

TheListener

Can you please post the error here.

We are unable to help otherwise.


kir199123

this was coming before my forum start at homepage
also features n options were not opening in the admin panel

// MetaTags MOD by SID-Giessen $txt['meta_data_menue'] = 'MetaTags'; $txt['meta_data_yes'] = 'Yes'; $txt['meta_data_no'] = 'No'; $txt['meta_data_description_on'] = 'Enable Description'; $txt['meta_data_description_text'] ='Description'; $txt['meta_data_description_blank'] = 'My Forum Description'; $txt['meta_data_keywords_on'] = 'Enable Keywords'; $txt['meta_data_keywords_text'] ='Keywords'; $txt['meta_data_keywords_blank'] = 'my,keywords,from,my,forum'; $txt['meta_data_copyright_on'] = 'Enable Copyright'; $txt['meta_data_copyright_text'] ='Copyright'; $txt['meta_data_copyright_blank'] = '© Copyright 2009 by My Forum'; $txt['meta_data_author_on'] = 'Enable Author'; $txt['meta_data_author_text'] ='Author'; $txt['meta_data_author_blank'] = 'My Name'; $txt['meta_data_dc_description_on'] = 'Enable DC.Description'; $txt['meta_data_dc_description_text'] ='DC.Description'; $txt['meta_data_dc_description_blank'] = 'My Forum DC.Description'; $txt['meta_data_language_on'] = 'Enable Language'; $txt['meta_data_language_text'] ='Language'; $txt['meta_data_language_blank'] = 'English, en, english'; $txt['meta_data_publisher_on'] = 'Enable Publisher'; $txt['meta_data_publisher_text'] ='Publisher'; $txt['meta_data_publisher_blank'] = 'My Name'; $txt['meta_data_revisit_after_on'] = 'Enable Revisit-after'; $txt['meta_data_revisit_after_text'] ='Revisit-after'; $txt['meta_data_revisit_after_1_day'] = 'after 1 day'; $txt['meta_data_revisit_after_2_days'] = 'after 2 days'; $txt['meta_data_revisit_after_3_days'] = 'after 3 days'; $txt['meta_data_revisit_after_4_days'] = 'after 4 days'; $txt['meta_data_revisit_after_5_days'] = 'after 5 days'; $txt['meta_data_revisit_after_6_days'] = 'after 6 days'; $txt['meta_data_revisit_after_7_days'] = 'after 7 days'; $txt['meta_data_revisit_after_14_days'] = 'after 14 days'; $txt['meta_data_revisit_after_21_days'] = 'after 21 days'; $txt['meta_data_date_on'] = 'Enable Date'; $txt['meta_data_date_text'] ='Date'; $txt['meta_data_date_blank'] = '2000-01-01'; $txt['meta_data_page_topic_on'] = 'Enable Page-topic'; $txt['meta_data_page_topic_text'] ='Page-topic'; $txt['meta_data_page_topic_blank'] = 'My Forum'; $txt['meta_data_page_type_on'] = 'Enable Page-type'; $txt['meta_data_page_type_text'] ='Page-type'; $txt['meta_data_page_type_blank'] = 'Forum'; $txt['meta_data_audience_on'] = 'Enable Audience'; $txt['meta_data_audience_text'] ='Audience'; $txt['meta_data_audience_blank'] = 'all'; $txt['meta_data_expires_on'] = 'Enable Expires'; $txt['meta_data_expires_text'] ='Expires'; $txt['meta_data_expires_blank'] = 'none'; $txt['meta_data_pagetopic_on'] = 'Enable Pagetopic'; $txt['meta_data_pagetype_on'] = 'Enable Pagetype'; $txt['meta_data_imagetoolbar_on'] = 'Enable Imagetoolbar'; $txt['meta_data_imagetoolbar_text'] ='Imagetoolbar'; $txt['meta_data_robots_on'] = 'Enable Robots'; $txt['meta_data_robots_text'] ='Robots'; $txt['meta_data_robots_blank'] = 'index,follow'; $txt['meta_data_tweetmeme_title_on'] = 'Enable tweetmeme-title'; $txt['meta_data_tweetmeme_title_text'] ='tweetmeme-title'; $txt['meta_data_tweetmeme_title_blank'] = 'Title'; $txt['meta_data_google_title_on'] = 'Enable Google Webmaster Tools'; $txt['meta_data_google_title_text'] ='Google Webmaster Tools'; $txt['meta_data_google_title_blank'] = '123456789abcdefgh'; $txt['meta_data_yahoo_title_on'] = 'Enable Yahoo Site Explorer'; $txt['meta_data_yahoo_title_text'] ='Yahoo Site Explorer'; $txt['meta_data_yahoo_title_blank'] = '123456789abcdefgh'; $txt['meta_data_alexa_title_on'] = 'Enable Alexa Verify ID'; $txt['meta_data_alexa_title_text'] ='Alexa Verify ID'; $txt['meta_data_alexa_title_blank'] = '123456789abcdefgh';

TheListener

Please go to the tmods support topic as linked to by K@

kat

Looks like a file doesn't have the opening php tag <?php at the start.

kir199123



kat

Look at these files:

/Sources/Admin.php

/Sources/ManageSettings.php

/Sources/MessageIndex.php

/Sources/Display.php

/Themes/default/index.template.php

/Themes/default/languages/Modifications.english.php <- Especially that one

/Themes/default/languages/Help.english.php

and check that each one has:

<?php

as the very first line. Just that. Nothing else.

If that fails, have a look at the link I posted, above.

kir199123

but i have unistalled tht
still too the prob persists
and i have a backup of yest in which more than 5 or 6 mods not installed
shall i proceed with tht???

kir199123

hurrayyyyyyyyyyyyyy
i have solved
after a lot of research and by reversely going and after cross verification manually by the mod
i find the mistake  its actually this
?> at  /public_html/Themes/default/languages/Modifications.english.php

once extra ?> tag made this fatal error and this is at middle which made confusion and mess up :)


kir199123

another error which i havent observed

Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/a6042480/public_html/Sources/Admin.php on line 223

when i was trying to open package manager
wat to do to solve this??

kir199123

this is my 223 line
'general' => array($txt['mods_cat_modifications_misc']),'Meta tags' => array ($ txt ['meta_data_menue']),
just counted  1by 1
and i manually edited this by seeing the mod
any changes need to be dome?
pls say if yes

kir199123

solved
actually $ txt is there instead of $txt
so replaced it n its solved :)

kir199123

#15
another error :(

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/a6042480/public_html/Sources/ManageSettings.php on line 176

i post the doubtful area 170-180 lines pls correct it pls


global $context, $txt, $scripturl, $modSettings, $settings;

$context['page_title'] = $txt['admin_modifications'];

$SubActions = array('General' => 'ModifyGeneralModSettings''Meta tags' => 'ModifyMetaTagsSettings'
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.


// Make it easier for mods to add new areas.
call_integration_hook('integrate_modify_modifications', array(&$subActions);

loadGeneralSettingParameters($subActions, 'general');


<<Edited by K@ to add code tags>>

kat


kir199123

this the code

Parse error: syntax error, unexpected T_STRING in /home/a6042480/public_html/Sources/ManageSettings.php on line 181



kir199123

this is the line in which error is

   call_integration_hook('integrate_modify_modifications', array(&$subActions));

kir199123


kat

That file look a total mess, to me.

Try this one. (Keep the original file, as a backup)

kir199123

thanks
i have changed the managesettings.php to backup files
and also help.english.php to previous backup files
thanks for the support :)


Advertisement: