Advertisement:

Author Topic: SMF 2 RC4 Help with certain things  (Read 6001 times)

Offline Valdes

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF 2 RC4 Help with certain things
« Reply #20 on: April 01, 2011, 05:35:51 PM »
OK. Is the replacement Subs.php working for you? Are you still getting the error that it cannot find Subs.php?
Can you check that you have a Subs.php in the Sources directory?
If it is there, and you still get the error, can you check and correct the permissions (CHMOD) on Sources/Subs.php?
No, the replacement Subs.php did not work, it gave me this:

Code: [Select]
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/kionf/public_html/epk/Sources/Subs.php on line 8009

Parse error: syntax error, unexpected ',' in /home/kionf/public_html/epk/Sources/Subs.php on line 8009
I checked the file permissions, they are 0644, and it is in the sources folder.

I don't know what's wrong.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: SMF 2 RC4 Help with certain things
« Reply #21 on: April 04, 2011, 06:59:41 AM »
You have a syntax error on line 8009 of Subs.php.
The php parser did not expect a comma where it found it. This could mean something else (like a closing parenthesis) was missing before that point, perhaps even on an earlier line, if 8009 is part of a multi-line statement.

I don't know what line 8009 of your Subs.php looks like, so I cannot give you any more help than that.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Offline Valdes

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF 2 RC4 Help with certain things
« Reply #22 on: April 04, 2011, 04:32:02 PM »
Is it possible that I can find line 8009? Im no expert, but is there a way?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #23 on: April 04, 2011, 04:39:05 PM »
Open Subs.php in a text-editor such as Notepad++ which has a linecount on the left hand side.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: SMF 2 RC4 Help with certain things
« Reply #24 on: April 05, 2011, 09:47:26 AM »
Valdes, I highly recommend a half-decent editor with line numbers if you are going to do any kind of customization. Otherwise, I am afraid you will lose your mind!

Writing code always means making bugs. Better tools means an easier time finding them.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #25 on: April 05, 2011, 01:00:38 PM »
Who makes bugs when they develop mods?  :o

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,216
    • StoryBB/StoryBB on GitHub
Re: SMF 2 RC4 Help with certain things
« Reply #26 on: April 05, 2011, 01:32:44 PM »
Who makes bugs when they develop mods?  :o

Anyone who writes anything of complexity will make bugs.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #27 on: April 05, 2011, 01:41:03 PM »
That was sarcasm, Arantor. I was joking.
Who makes bugs when they develop mods?  :o

Anyone who writes anything of complexity will make bugs.

Offline Valdes

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF 2 RC4 Help with certain things
« Reply #28 on: April 12, 2011, 06:20:00 PM »
This is what my line 8009 of my Subs.php


Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #29 on: April 12, 2011, 06:22:02 PM »
The problem is that the Admin array is closed off before SimplePortals tab.

Remove the three ), that are right above the portal tab, and it'll fix it.

Offline Valdes

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF 2 RC4 Help with certain things
« Reply #30 on: April 12, 2011, 06:28:14 PM »
Okay thanks.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #31 on: April 12, 2011, 06:32:59 PM »
Subs.php
Code: (Find) [Select]
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
'is_last' => true,

'portal' => array(
'title' => $txt['sp-adminCatTitle'],
'href' => $scripturl . '?action=admin;area=portalconfig',
'show' => allowedTo(array('sp_admin', 'sp_manage_settings')),
'is_last' => true,
),
),
),
Code: (Replace) [Select]
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
'is_last' => true,
),
'portal' => array(
'title' => $txt['sp-adminCatTitle'],
'href' => $scripturl . '?action=admin;area=portalconfig',
'show' => allowedTo(array('sp_admin', 'sp_manage_settings')),
'is_last' => true,
),
),
),

Offline Valdes

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF 2 RC4 Help with certain things
« Reply #32 on: April 12, 2011, 06:37:29 PM »
Worked thanks. Marking resolved. =)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF 2 RC4 Help with certain things
« Reply #33 on: April 12, 2011, 08:49:12 PM »
No problem, glad I could help :)