News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

HELP - Parse Error

Started by mattchewone, May 23, 2009, 09:42:43 AM

Previous topic - Next topic

Akyhne

Quote from: mattchewone on May 24, 2009, 04:11:24 PM
Not getting any errors when visiting the site
Not easy to help then :(

mattchewone

Is there nothing in the index.php that is causing problems or conflict with anything that could be preventing the site from being displayed?

Or is there a missing { } or ; any where in the file? I am not sure what i am looking for but did a google search and found that the syntax error can be caused by missing { } or ;

But i do know nothing.

Akyhne

Your error tell me that you are either using a file that is not the same i edited for you, or that another file is called within the index.php where the error is produced on line 332.
The only thing I can suggest is to go through all files in the ./Sources folder and check wether there's a } on line 332.

I would probably start with Who.php as it is there the error *might* be produced.

mattchewone

I have this on Packages.php

$old_themes))
	
	
	
	
	
unset(
$theme_paths[$id]);
	
	
}
	
}


Is this the problem? The last } being on line 332

Akyhne

Attach you Packages.php. I need to see the line before those.

mattchewone

Here is the Packages.php

Many Thanks

Akyhne

Your Packages.php file is ok.

mattchewone

Can you suggest any other files i should look at, i have looked at Who.php, Subs.php and Packages.php

Akyhne


mattchewone

Here is Admin.php

//-> end add PortaMx

	
	
'layout' => array(
	
	
	
'title' => $txt['layout_controls'],
	
	
	
'permission' => array('manage_boards''admin_forum''manage_smileys''manage_attachments''moderate_forum'),
	
	
	
'areas' => array(
	
	
	
	
'manageboards' => array(
	
	
	
	
	
'label' => $txt['admin_boards'],
	
	
	
	
	
'file' => 'ManageBoards.php',
	
	
	
	
	
'function' => 'ManageBoards',
	
	
	
	
	
'icon' => 'boards.gif',
	
	
	
	
	
'permission' => array('manage_boards'),
	
	
	
	
	
'subsections' => array(
	
	
	
	
	
	
'main' => array($txt['boardsEdit']),
	
	
	
	
	
	
'newcat' => array($txt['mboards_new_cat']),
	
	
	
	
	
	
'settings' => array($txt['settings'], 'admin_forum'),
	
	
	
	
	
),
	
	
	
	
),
	
	
	
	
'postsettings' => array(
	
	
	
	
	
'label' => $txt['manageposts'],
	
	
	
	
	
'file' => 'ManagePosts.php',
	
	
	
	
	
'function' => 'ManagePostSettings',
	
	
	
	
	
'permission' => array('admin_forum''moderate_forum'),
	
	
	
	
	
'icon' => 'posts.gif',
	
	
	
	
	
'subsections' => array(
	
	
	
	
	
	
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
	
	
	
	
	
	
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
	
	
	
	
	
	
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
	
	
	
	
	
	
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
	
	
	
	
	
),
	
	
	
	
),
	
	
      
'announcements' => array(
	
	
	
	
	
'label' => $txt['yagam_admin'],
	
	
	
	
	
'file' => 'Announcements.php',
	
	
	
	
	
'function' => 'AnnouncementsAdmin',
	
	
	
	
	
'custom_url' => $scripturl '?action=announcements;sa=admin',
	
	
	
	
	
'icon' => 'yagam.gif',
	
	
	

                                        
'subsections' => array(
	
	
	
	
	
        
'add' => array($txt['yagam_admin_add'], 'yagam_manage'),
	

	
	
	
	
	
	
'admin' => array($txt['yagam_admin'], 'yagam_manage'),
	
	
	
	
	
	

	
	
	
	
	
),
	
	
	
	
	

	
	
	
	
),

The last line being 332.

Advertisement: