MyBB Community Forums

Full Version: Upgrade Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My forum (https://dearsweetaru.net/forum/) has been running into errors ever since I upgraded to 1.8.29.

I started getting emails such as the following:
Quote:Your copy of MyBB running on Dearly Sweet (https://dearsweetaru.net/forum) has experienced an error. Details of the error include:
---
Type: 512
File: inc/class_parser.php (Line no. 2049)
Message
Quote:Your copy of MyBB running on Dearly Sweet (https://dearsweetaru.net/forum) has experienced an error. Details of the error include:
---
Type: 2
File: inc/plugins/asb/functions.php (Line no. 166)
Message
Note: I excluded the messages/posts in the email quotes because... they're huge. This is a roleplaying community and we write a lot. I can give the posts in full to whoever is able to help.

It has also been clashing with my website host (HostMonster) due to the forum having outdated PHP.

Honestly, as terrible as this is going to sound, I have no idea what version I upgraded it from. I noticed it was out-of-date, upgraded it, and carried on with my day. I was in the middle of a cross-country move, so I didn't prioritize items on the forum as I should have. That move is finally almost done so I can put better focus here; however, I'm not a coder/developer by any means. I know some basic HTML and CSS, and that's about it.

Any help is absolutely welcomed and appreciated. Thank you in advance.
From looking at the line number in the first error, you may be running into this issue: https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed

Do you have any custom MyCodes set up?
(2022-04-08, 06:01 PM)Matt Wrote: [ -> ]From looking at the line number in the first error, you may be running into this issue: https://docs.mybb.com/1.8/faq/errors/#pa...ion-failed

Do you have any custom MyCodes set up?

I do have several MyCodes set up, which I've tried adjusting around based on some posts I've seen on the help forum. I still got error emails, so I'm at a loss.

Here's an example for our info box:
\[info\](.*?)\[/info\]
<div style="background-image: url('https://dearsweetaru.net/forum/images/info.png'); background-repeat: no-repeat; background-position: left center; background-size: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position-x: 2.2em; background-margin: 5px; background-color: #e2ecee; padding: 1em 1.5em 1em 5.5em; margin-bottom: 1.5em; border-bottom; border-top: 2px solid #9ddae6; border-bottom: 2px solid #9ddae6;"./>
<font color="#444"./>$1</font>
</div>
Remove the two instances of ./ in the tags there, I’m not sure why they’re there but that’s not valid HTML and is likely to be what’s causing the issue.
It's easier to handle without inline stylesheets Wink

MyCode Replacement:
<div class="mycode_infoblock"><span>$1</span></div>

CSS code into theme global.css
.mycode_infoblock {
    background-image: url(images/icons/information.png);
    background-repeat: no-repeat;
    background-position: 2.2em center;
    background-color: #e2ecee;
    padding: 1em 1.5em 1em 5.5em;
    margin-bottom: 1.5em;
    border-top: 2px solid #9ddae6;
    border-bottom: 2px solid #9ddae6;
}

.mycode_infoblock span {
    color: #444;
}
(2022-04-08, 08:41 PM)Matt Wrote: [ -> ]Remove the two instances of ./ in the tags there, I’m not sure why they’re there but that’s not valid HTML and is likely to be what’s causing the issue.

The MyCode items didn't originally have any instances of ./ in them. I only tried adding them after I saw some users claim it fixed their issue. I still receive the error messages regardless of whether or not they're present.

(2022-04-08, 10:12 PM)SvePu Wrote: [ -> ]It's easier to handle without inline stylesheets Wink

MyCode Replacement:
<div class="mycode_infoblock"><span>$1</span></div>

CSS code into theme global.css
.mycode_infoblock {
    background-image: url(images/icons/information.png);
    background-repeat: no-repeat;
    background-position: 2.2em center;
    background-color: #e2ecee;
    padding: 1em 1.5em 1em 5.5em;
    margin-bottom: 1.5em;
    border-top: 2px solid #9ddae6;
    border-bottom: 2px solid #9ddae6;
}

.mycode_infoblock span {
    color: #444;
}

Can the custom CSS go on any line in the global.css file or does it need to be in a specific area?
Put it at the end of theme global.css Wink
Somehow this custom code is causing posts to not render at all despite working as intended in the ACP sandbox.

\[smimg=([0-9]*?)\](.*?)\[/smimg\]

<a href="$2"><img src="$2" style="width:$1px;"></a>

ETA: Looks like the "unclosed" img tag was the culprit but this sort of thing should really be addressed in the myCode setup/testing page.