SimplePortal
Support => English Support => Topic started by: jakeism on September 03, 2008, 02:10:37 PM
-
Hello.
I've followed all the directions on SMF and when I attempt to install I get the following error
Parse error: syntax error, unexpected "," in /home2/ivguil/public_html/philosophynight/Sources/Load.php on line 652
when I remove that it then displays:
Parse error: syntax error, unexpected T_ARRAY in /home2/ivguil/public_html/philosophynight/Sources/Load.php on line 653
I posted on the othersite but it seems to have gone down today. Any help would be great.
URL is
philosophynight.com
-
Can you attach this file?
Are you using the latest version of SMF?
Any mods installed?
Are you using a custom theme?
Any errors in the error logs?
Version of SP?
-
Sorry was rushed this morning.
Can you attach this file?
Are you using the latest version of SMF? Yes. 1.1.5 installed yesterday.
Any mods installed? No mods.
Are you using a custom theme? Yes. Blackted is the theme.
Any errors in the error logs? Unsure where to find this, so I attached errors.php
Version of SP? Latest 2.0.4
Sorry about the lack of info.
-
Your code in the Load.php look
if (count(array_intersect($user_info['groups'], $board_info['groups'])) == 0 && !$user_info['is_admin'])
$board_info['error'] = 'access'; // Build up the linktree. (Need SPortal in linktree) $context['linktree'] = array_merge( $context['linktree'], array(array( 'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'], 'name' => $board_info['cat']['name'] )),
array_reverse($board_info['parent_boards'])
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);
but normal it should look like:
if (count(array_intersect($user_info['groups'], $board_info['groups'])) == 0 && !$user_info['is_admin'])
$board_info['error'] = 'access';
// Build up the linktree. (Need SPortal in linktree)
$context['linktree'],
array(array( 'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'], 'name' => $board_info['cat']['name'] )),
array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);
I'm not sure if this is a bug from SPortal.
I don't find a replace like that in the Package Installer, so it could also be possible that this is replace and replace after that. (I will test it after i come home from work (or if someone else do this please write))
Bye
DIN1031
-
@jakeism,
Its likely that this error was caused by the package manager, putting too much code on the same line for some unknown reason. There may be similar errors in other files.
I have also made the edits and attached the fixed file to this post. ;)
-
seemed to install ok I think.... just showed a blank page that was completely loaded.
on the forums now I don't see any changes. ( I am new to smf, so there might be some where I need to enable the portal features.)
it does display an error at the bottom of the forums
Fatal error: Call to undefined function sportal_vital() in /home2/ivguil/public_html/philosophynight/Sources/Subs.php on line 3304
-
Hmm, did you have any install errors wihen you installed the mod?
That function should work, its either an error with your 'index.php' or 'Subs.php' files. ;)
-
I just get a blank page...
http://philosophynight.com/install.php
-
The error has nothing to do with that file. ;)
I meant errors with the installation of this mod via the package manager. ;)
Can you please post your main 'index.php' file? I belive that the errors will be there.
-
as requested ;)
-
Okay, I have fixed the errors for that file and reattached it. ;)
Its the same sort of error as the last error, with too much code being place on the same line and newlines being ignored by the package manager. You may have errors in other files as well. Although try that file and then check. ;)
-
doesn't show any fatal errors.. so thank you for that. I'm still not seeing any panel for the customization for the portal. Here is what the forum error log displays though
Apply Filter: Only show the error messages of this member jake Today at 12:11:39 AM
Apply Filter: Only show the error messages of this IP address ******** Apply Filter: Only show the error messages of this session 58f726f515ad17bfea5d1d0d1195d141
Apply Filter: Only show the error messages of this URL http://philosophynight.com/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: sp-adminTitle
File: /home2/ivguil/public_html/philosophynight/Sources/Subs.php
Line: 2768
******* Apply Filter: Only show the error messages of this session 58f726f515ad17bfea5d1d0d1195d141
Apply Filter: Only show the error messages of this URL http://philosophynight.com/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: sp-adminCatTitle
File: /home2/ivguil/public_html/philosophynight/Sources/Subs.php
Line: 2768
Hopefully this is helping your project and not just putting a burden..
Thank you again for all the help.
-
Thats an odd error. Try adding this code to your 'sportal_init()' function at the start of your 'SPortal.php' file.
loadLanguage('Modifications');
BTW, that file shouldn't be causing any errors. ;)
-
seems to already be there
-
Okay, can you post these files so that I can check them?
SPortal.php
Modifications.english.php
-
Here you go. Sorry about the late reply.
Threw in errors just for fun.
Thanks so much =)
-
any luck so far? I'm about to scrap simple portal so I can launch my site.. :'( It'll just have to do without.
Thanks for your help anyways though. I'll be launching it monday if you are still up to figuring out what went wrong.. :wave:
-
Sorry about the late reply, I totally missed this topic. :(
Here is your 'Modifications.english.php' file, I had to fix an error in it. ;)
-
I'm having a similar error:
Fatal error: Call to undefined function sportal_vital() in /home/a4319792/public_html/forum/Sources/Subs.php on line 3342
As a result, I can see a section where the Portal options would be in the Admin menu but there's nothing in it.
I'm running a fresh install of SMF 1.1.6 with SPortal 2.0.5. The site is located at http://macfeats.site90.net/forum/
Any help would be appreciated.
-
Welcome chedam.
Sorry for delayed reply.
Can you check if you have SPortal.php, SPortalAdmin.php and Subs-Sportal.php in your Sources directory?
I'm sure updrading to the latest version will solve this issue. Check the Downloads (http://simpleportal.net/index.php?action=download) section for latest version.
-
I just downloaded SimplePortal's newest version and i was wondering if there is any configurations that needs to be done before installing it.
-
Hi welcome to SP.net, you don't need to configure anything in order to install simpleportal, just install it with packager manager, if you have errors during the installation, please copy an paste the errors and attach you files, and Ill be glad to help you out ;) mostly errors are from other mods that change a particular line of code that simpleportal needs to modified too, you will need to aply some minor changes if you are using a diferent theme, see this post for more info on how to do that:
http://simpleportal.net/index.php?topic=148.0
greetings!
-
jakeism, do you still require assistance with this?