SimplePortal

Support => Install and Upgrade => Topic started by: Sudhakar on September 24, 2010, 07:58:11 AM

Title: Subs php issue on SMF2.0RC2
Post by: Sudhakar on September 24, 2010, 07:58:11 AM
Hey Team,

Am trying to install SP 2.3.2 in SMF2.0RC2.

Error @ ./Sources/Subs.php   Test failed + Same page ( 3 Test Failed with ignore errors  )

Code: [Select]
if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
$bbc_codes[substr($code['tag'], 0, 1)][] = $code;
}
$codes = null;
}

But i dont have such code in my subs.php ( attached for reference )

Kindly support .
Title: Re: Subs php issue on SMF2.0RC2
Post by: AngelinaBelle on September 24, 2010, 09:44:09 AM
XVP40, you are correct.
 
I would add only one more hint to that.
 
If you are having trouble finding the string in YOUR copy of Subs.php, try looking for it in a REFERENCE copy of Subs.php (like one straight out of the download archive). Then find something nearby to use as a landmark.
 
Shhhh! would work in this case.
 
Then you can do the automated install, and fix up that one spot by hand.
 
You can handle this!
Title: Re: Subs php issue on SMF2.0RC2
Post by: Sudhakar on September 25, 2010, 06:55:15 PM
Good Ideas,

But any one there from tech to support me on this issue.
Title: Re: Subs php issue on SMF2.0RC2
Post by: Nathaniel on September 26, 2010, 12:59:19 AM
Have you tried making that edit yourself? You can always try searching that file for similar code (using a smaller part of SimplePortal's search code), it should be somewhere in the parse_bbc function.
Title: Re: Subs php issue on SMF2.0RC2
Post by: ccbtimewiz on September 26, 2010, 01:17:08 AM
Upgrade to SMF 2.0 RC3
Title: Re: Subs php issue on SMF2.0RC2
Post by: Nathaniel on September 26, 2010, 02:56:30 AM
ccbtimewiz raises a very good point. Its likely that this is a problem with your older SMF version. Running the latest version is always a good idea anyways.
Title: Re: Subs php issue on SMF2.0RC2
Post by: ccbtimewiz on September 26, 2010, 11:29:15 PM
The moment I noticed the title saying "SMF 2.0 RC2" I looked at the date (thinking it was an old topic) but consequently was not old.

SMF is slowly dropping support for older 2.0 candidates, and the most recent candidate is what most mods are made and maintained for.

Which is why I stated to upgrade. You could try making the edits yourself, but the latest SP build was made for SMF 2.0 RC3
Title: Re: Subs php issue on SMF2.0RC2
Post by: Nathaniel on October 04, 2010, 07:12:47 AM
Any updates on this issue Sudhakar? Have you tried updating to the latest version of SMF?
Title: Re: Subs php issue on SMF2.0RC2
Post by: Sudhakar on October 04, 2010, 04:57:49 PM
Hi Nathaniel & ccbtimewiz,

I appreciate your comments here. It is completely true, which i could not say No to it.

I am personally running smf board for almost 4 years, and i still remember the date when smf 2.0 RC candidate 3 is released. Unfortunately, i have around 100 mods, and as you know i dont have immediate update from most of the modders, i have left upgrading to the latest version. And as i said it , earlier i have simple portal installed, but unfortunately some big mod would have disturbed a small portion of code in subs.php. So i have posted here, assuming that either SiNaN or some tech support people will help me in editing the subs.php page to fix the install issue with 2.0 RC 2. Once this small issue is fixed, i dont want to take my complete day out to upgrade to latest version or simple machines.

Hope my answer would yield me some ways to solve my issue to install simple portal again in my forum.

Have a good day...
Title: Re: Subs php issue on SMF2.0RC2
Post by: AngelinaBelle on October 05, 2010, 11:33:15 AM
Again, I suggest that you search like this:
 
1) Get a copy of the un-modded or clean Subs.php from the SMF distribution.
2) Find, in the clean version of Subs.php, the piece of code the package manager is searching for
3) Find, in the clean version of Subs.php, a nearby piece of code you can use as a landmark.
 
In this case, you will find Shhhh! just before.
 
4) Figure out what has become of the code the package manager was looking for.
 
In this case, you seem to have
Code: [Select]
  foreach ($codes as $c)
   $bbc_codes[substr($c['tag'], 0, 1)][] = $c;
  $codes = null;

Which seems to be functionally equivalent to
Code: [Select]
  foreach ($codes as $code)
  {
   // If we are not doing every tag only do ones we are interested in.
   // if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
    $bbc_codes[substr($code['tag'], 0, 1)][] = $code;
  }
  $codes = null;

So, this way, I think you can find the right place to add the remaining portion of code.
 
You can do this.
 
 
 
Title: Re: Subs php issue on SMF2.0RC2
Post by: Sudhakar on February 14, 2011, 06:22:36 AM
Thanks for all your support.

The recent version fixed the issue for me and it had installed perfectly on my forum.

Thank you , i will mark this topic as solved.
Title: Re: Subs php issue on SMF2.0RC2
Post by: AngelinaBelle on February 14, 2011, 07:03:50 AM
I'm glad you were able to solve this problem.
It can be confusing, when several mods want to change code in the same part of the file.
SimplePortal 2.3.8 © 2008-2024, SimplePortal