Call to undefined method bbcode::bbcode

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Teejay187
Registered User
Posts: 5
Joined: Mon Oct 21, 2013 8:59 pm

Call to undefined method bbcode::bbcode

Post by Teejay187 » Sat Nov 17, 2018 9:59 pm

Support Request Template
What version of phpBB are you using? phpBB 3.2.4
What is your board's URL? http://www.mx5-miata.no
Who do you host your board with? one.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? Yes, but disabled
What version of phpBB3 did you update from? phpBB 3.1.7-RC1
What styles do you currently have installed? prosilver
What language(s) is your board currently using? english
Which database type/version are you using? MariaDB
What is your level of experience? New to PHP but not phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Updated the board from 3.1.7 with the update package.
Please describe your problem. There are now problems with access to some threads. I get the following error at times:

Fatal error: Uncaught Error: Call to undefined method bbcode::bbcode() in /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/includes/functions_content.php:630 Stack trace: #0 /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/viewtopic.php(1718): generate_text_for_display('Fredagskvelden ...', '1illbhf1', 'CA==', 3, true) #1 {main} thrown in /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/includes/functions_content.php on line 630
Generated by SRT Generator

Link to a problematic thread: http://www.mx5-miata.no/phpbb/viewtopic ... 24&t=17313

User avatar
AbaddonOrmuz
Registered User
Posts: 435
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Call to undefined method bbcode::bbcode

Post by AbaddonOrmuz » Sat Nov 17, 2018 11:15 pm

Check if it's related to this:

viewtopic.php?f=556&t=2492371
A proudly user of Arch Linux :: /r/sddm_themes

Teejay187
Registered User
Posts: 5
Joined: Mon Oct 21, 2013 8:59 pm

Re: Call to undefined method bbcode::bbcode

Post by Teejay187 » Sat Nov 17, 2018 11:24 pm

AbaddonOrmuz wrote:
Sat Nov 17, 2018 11:15 pm
Check if it's related to this:

viewtopic.php?f=556&t=2492371
Hi,

I just saw that one pop up! I implemented the fix and now the error has changed.

Now I'm getting the following:

Code: Select all

Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "storage.attachment". in /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/vendor/symfony/dependency-injection/ContainerBuilder.php:809 Stack trace: #0 /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/vendor/symfony/dependency-injection/ContainerBuilder.php(455): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('storage.attachm...') #1 /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/includes/functions_content.php(1091): Symfony\Component\DependencyInjection\ContainerBuilder->get('storage.attachm...') #2 /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/viewtopic.php(1722): parse_attachments(24, 'Fikk tak i dett...', Array, Array) #3 {main} thrown in /customers/8/a/9/mx5-miata.no/httpd.www/phpbb/vendor/symfony/dependency-injection/ContainerBuilder.php on line 809
But this time it happens in other threads that previously worked fine.

Example: http://www.mx5-miata.no/phpbb/viewtopic ... 24&t=20308

User avatar
AbaddonOrmuz
Registered User
Posts: 435
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Call to undefined method bbcode::bbcode

Post by AbaddonOrmuz » Sat Nov 17, 2018 11:51 pm

Teejay187 wrote:
Sat Nov 17, 2018 11:24 pm
But this time it happens in other threads that previously worked fine.

Example: http://www.mx5-miata.no/phpbb/viewtopic ... 24&t=20308
I don't see how applying that fix would mess with attachments, maybe the error is thrown inside another method.

Try to clear the cache, or revert the change if the problem persist after that.

I haven't upgraded my boards yet, I'll try to test latter.
A proudly user of Arch Linux :: /r/sddm_themes

Teejay187
Registered User
Posts: 5
Joined: Mon Oct 21, 2013 8:59 pm

Re: Call to undefined method bbcode::bbcode

Post by Teejay187 » Sun Nov 18, 2018 10:36 am

I tried reverting to 3.1.7-RC with the backups, but restoring files to the host has proven to be a problem. So I guess I'm stuck with this version until a fix is released.

User avatar
EA117
Registered User
Posts: 116
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Call to undefined method bbcode::bbcode

Post by EA117 » Sun Nov 18, 2018 10:54 am

Teejay187 wrote:
Sat Nov 17, 2018 11:24 pm
I implemented the fix and now the error has changed.
First, if you didn't already, can you clear your cache from ACP after implementing this change like AbaddonOrmuz suggested. Just to rule that out.

And I'm sure you already gave this a hard look, but could you perhaps check a third time regarding the positioning of the lines that were changed. The fact that this call stack cites function_content.php, and "a new problem starts once I've edited it", just really makes one want to be sure that the braces weren't mistakenly one level too deep or some other subtle syntax issue unintentionally introduced in editing.

Maybe the easiest way would be to compare your modified files against what is attached here, which are what I ended up with after implementing the fix. If your modified files are already identical to these, then I guess we rule this angle out completely. Otherwise, it seems like it might fall into the "simplest explanation" category worthy of taking the time to verify.
Attachments
bbcode.php
Modified 3.2.4 file to address renaming of bbcode constructor.
(19.5 KiB) Downloaded 73 times
functions_content.php
Modified 3.2.4 file to address renaming of bbcode constructor.
(51.02 KiB) Downloaded 59 times

Teejay187
Registered User
Posts: 5
Joined: Mon Oct 21, 2013 8:59 pm

Re: Call to undefined method bbcode::bbcode

Post by Teejay187 » Sun Nov 18, 2018 1:17 pm

Seems like the files you posted fixed the problem. Not sure where the problem were, as I tried downloading the updated files from github after a fix was implemented yesterday.

Me and all the members on our board are very thankful for the swift help! Thank you :D

I compared the two files (bbcode.php) in the area where the edit was done. It was correct character by character, but a tab and a line change was off. The functions_content.php was identical on line 630 after what I can see..

User avatar
EA117
Registered User
Posts: 116
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Call to undefined method bbcode::bbcode

Post by EA117 » Mon Nov 19, 2018 1:16 pm

Glad its now working for you guys. Yeah, I don't think it's clear what exactly was wrong. But the results are now what we expected, so let's go worry about better things! 😜

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: janus_zonstraal, Nick225 and 27 guests