MyBB Community Forums

Full Version: Added SSL on Mybb forum and now it's all blank
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have installed SSL, https works but now it's all blank, there is nothing Sad

But admin CP works..

What I have to do now?

I have this in .htaccess:

Options +FollowSymlinks  
RewriteEngine On  
RewriteBase /  
SetEnvIfNoCase User-Agent "SemrushBot" bad_user
SetEnvIfNoCase User-Agent "MJ12bot" bad_user
SetEnvIfNoCase User-Agent "AhrefsBot" bad_user
SetEnvIfNoCase User-Agent "Synthesio Crawler release MonaLisa (contact at synthesio dot fr)" bad_user
SetEnvIfNoCase User-Agent "Synthesio Crawler" bad_user
SetEnvIfNoCase User-Agent "istellabot/t.1.13" bad_user
SetEnvIfNoCase User-Agent "istellabot" bad_user
Deny from env=bad_user

RewriteCond %{HTTP_HOST} =www.(my-website).com
RewriteRule (.*) https://(my-website)/$1 [R=302,L]

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Redirect 301 /forum/portal.php /index.php

I use Serverpilot on my VPS (https://serverpilot.io/community/ ), with Ubuntu 16.04 and PHP 7.0.

Thank you

If I disable all plugins from Admin CP I have this error on my forum:

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /srv/users/serverpilot/apps/(appname)/public/forum/global.php(527) : eval()'d code on line 2
can you post few lines (eg. 4) from the beginning of header_welcomeblock_member template of your forum's active theme
Thank you, it was <if> etc Sad

<if !in_array($GLOBALS['mybb']->user['usergroup'], array(2,35)) then><!-- UNREADPOSTS_LINK --></if>
	
<if ($mybb->user['pms_unread'])>0 then>	

<li>
    <a href="{$mybb->settings['bburl']}/private.php" title="{$mybb->user['pms_unread']} unreads">
		<span class="headericon icon-email-envelope" style="color:#C30808;"></span>
		<span class="hidden-sm"><strong>Privates</strong></span><span class="label label-danger">{$mybb->user['pms_unread']}</span><span class="caret"></span>
	</a>
</li>
	
<else>
<li>
    <a href="{$mybb->settings['bburl']}/private.php" title="There aren't unread messages">
		<span class="headericon icon-letter-mail"></span>
		<span class="hidden-sm"><strong>Privates</strong></span>
	</a>
</li>	
	</if>

So I have to delete all if Sad





No, when I enable again all plugins, forum is still blank Sad

So maybe it's a plugin.. but I don't know what plugin:

avatarup
Favorite Threads (1.0)
Last/First Post Avatar (1.0.2)
MyLikes (1.0)
Patches (1.5)
PHP and Template Conditionals (2.0)
Quick Thread (1.4)
Rin Editor (0.7.4)
Rin Shoutbox (0.3.2)
Thank You/Like System (1.9.8)
Thread Tooltip Preview (1.33)
View Unread Posts (1.6)
XThreads (1.68)

It's not a problem of theme, because I'm trying also with default theme and same problem. 99,9% is a plugin Sad
you might be knowing, basically using if conditions in templates requires its related plugin
you have PHP and Template Conditionals plugin for it.

can we have your forum url & php version ..
Thank you .m., I have disabled "PHP and Template Conditionals" plugin and now it's work, so the problem is that plugin Sad
Maybe it isn't compatible with PHP 7.0, I before had 5.6 and worked.

Without my <if><else></if> my forum is ugly Sad

Can't I have the same result with some mybb code?

I used "PHP and Template Conditionals" especially to show some content (for example lists or images) only in specific forums or show some content only to specific groups.

With just mybb I don't know how to do it...

Resolved, ehm I have upgraded PHP and Template Conditionals to the latest version (2.1) and now it works also with PHP 7.0..
I did not see that it was up to date Sad