News:

Wondering if this will always be free?  See why free is better.

Main Menu

sub.php error

Started by Eudemon, August 06, 2010, 11:58:39 AM

Previous topic - Next topic

Eudemon

when i tried to install a mod, i got a replacing error, this happened to me before
so i just use smf package parser to add the string myself

but then right after i edited it, i got this error message
Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/kumakun1/public_html/forum/Sources/Subs.php  on line 3874

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/kumakun1/public_html/forum/Sources/Subs.php on line 3874


line 3784 as it indicates above, i checked there, i couldn't find any thing wrong
and it's not where i edited for the mod, even i deleted what i've edited i still get this msg

here is a copy of my current sub.php

BTW,the mod is tagging system
this is the code i added

Find:
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),

Replace with:
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
'tags_settings' => array(
'title' => $txt['smftags_admin'],
'href' => $scripturl . '?action=admin;area=tags;sa=admin',
'show' => allowedTo('admin_forum'),
),

xenovanis

Hi, could you try clearing the forums cache and see if that helps?
"Insanity: doing the same thing over and over again and expecting different results."

Eudemon

i can't go into the forum, it only shows the error message

xenovanis

Connect with ftp to your site or use the filemanager from cPanel.

In your forumlocation is a folder named cache. Remove all files from that folder, except index.php and .htaccess.
"Insanity: doing the same thing over and over again and expecting different results."

Eudemon

there are only index and htaccess in that folder

xenovanis

This is the file you modified?

This code is from line 1 to 21, even before the <php tag and should not be there



array(
'tag' => 'random',
'type' => 'unparsed_content',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
$data = random_bbcode($data);
'),
),
array(
'tag' => 'random',
'type' => 'unparsed_equals_content',
'content' => '$1',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
'validate' => create_function('&$tag, &$data, $disabled', '
$data[1] = strtr($data[1], array(\'<br />\' => \'\'));
$data[0] = random_bbcode($data);
'),
),
"Insanity: doing the same thing over and over again and expecting different results."

deansmar

try this one

on line 3784 you had changed a lot of the caractors for the symbol ? but you had forgotten to put it in '?'

Eudemon

Quote from: deansmar on August 06, 2010, 12:43:31 PM
try this one

on line 3784 you had changed a lot of the caractors for the symbol ? but you had forgotten to put it in '?'

thx, it works, can you tell me where is been changed in your file

deansmar

as i have said in my prievios post;

Quoteon line 3784 you had changed a lot of the caractors for the symbol ? but you had forgotten to put it in '?'

which after cleaning your code is now line 3853 and on that line is this;

$clean_name = strtr($clean_name, array('?' => 'TH', '?' => 'th', '?' => 'DH', '?' => 'dh', '?' => 'ss', '?' => 'OE', '?' => 'oe', '?' => 'AE', '?' => 'ae', '?' => 'u'));

prior to cleaning it looked like this;

$clean_name = strtr($clean_name, array('? => 'TH', '? => 'th', '? => 'DH', '? => 'dh', '? => 'ss', '? => 'OE', '? => 'oe', '? => 'AE', '? => 'ae', '? => 'u'));

Eudemon

it works fine now
thank you

Advertisement: