News:

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

Main Menu

Upgraded from 2.0.15 to 2.1 RC2

Started by jmrossi, April 28, 2019, 06:28:55 PM

Previous topic - Next topic

jmrossi

Hello All,
I was searching throughout the forum trying to find a answer to the last few problems I am having on my live forum.  I have attached the images.

Images #1 - #3, shows "Class...." on the menu that is located on the Top, however, I can not figure out what file those errors are coming from.  I checked a few CSS and PHP files and no luck.
Image #4, when there is a admin on Who's Online, if there is another admin is in a area of the "Admin center" that will show "Nothing or Nothing you can See..." for the other admin, it also generates this error in the Error Log.

Is there a way to correct there errors?

Thanks so much in Advanced,
Jeff

shawnb61

Do you have any themes or mods installed?
A question worth asking is born in experience & driven by necessity. - Fripp

jmrossi

Quote from: shawnb61 on April 28, 2019, 06:55:00 PM
Do you have any themes or mods installed?

I have the Default Theme Installed and Using it.  I installed EZ-Portal but the issue was still present before installing. 

GigaWatt

Could you try and uninstall EZ-Portal, delete all relevant files regarding 2.1, reupload and overwrite the files (if some "survived" :P) with the large upgrade pack (if using FTP, don't forget to set the transfer process to run in binary mode), run the upgrade procedure again and see if you have the same issue?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

jmrossi

Quote from: GigaWatt on April 29, 2019, 12:18:21 AM
Could you try and uninstall EZ-Portal, delete all relevant files regarding 2.1, reupload and overwrite the files (if some "survived" :P) with the large upgrade pack (if using FTP, don't forget to set the transfer process to run in binary mode), run the upgrade procedure again and see if you have the same issue?

I will try that next and report back.

SychO

The issue in image #4 has been logged on github to be fixed in the future :)
https://github.com/SimpleMachines/SMF2.1/issues/5639
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

jmrossi

Quote from: SychO on April 29, 2019, 06:10:56 AM
The issue in image #4 has been logged on github to be fixed in the future :)
https://github.com/SimpleMachines/SMF2.1/issues/5639

Awesome Thanks!   ;)

Trying to see about fixing the other issue this evening and will report back.

jmrossi

Quote from: GigaWatt on April 29, 2019, 12:18:21 AM
Could you try and uninstall EZ-Portal, delete all relevant files regarding 2.1, reupload and overwrite the files (if some "survived" :P) with the large upgrade pack (if using FTP, don't forget to set the transfer process to run in binary mode), run the upgrade procedure again and see if you have the same issue?


Hi GigaWatt, I attempted the upgrade and I still have the same issue.  Do you know which file I need to edit?

jmrossi

For Images #1 - #3, I found out the issue.  When installing package Google Analytics Code  v1.4, it requires a manual edit of subs.php in the Sources Folder.

It looks for this line in the code:
/**
* Generate a random seed and ensure it's stored in settings.
*/
function smf_seed_generator()


Adds this before it:
// Google Analytics Integration
function ob_google_analytics($buffer)
{
global $modSettings;

if (!empty($modSettings['googleAnalyticsCode']) && !isset($_REQUEST['xml'])) {
$google_code = '
<script type="text/javascript"><!-- // -->' . chr(60) . '![CDATA[' . '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);

(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]' . chr(62) . '</script>';

// add in the analytics code at the very end of the head section
$buffer = substr_replace($buffer, $google_code . "\n" . '</head>', stripos($buffer, '</head>'), 7);
}

// All done
return $buffer;
}


Once this code is placed, the errors in #1-#3 show up.   I tried to move the code to another location and I get the same error.   Any ideas where I can place the code inside the "Subs.php" file?

Thanks in Advance!

Oldiesmann

Changing where you place the code won't fix the issue, as that code rewrites the output buffer, so it appears to be messing something up somewhere. I'd post in the mod topic asking them about it.

Advertisement: