Class 'BBC\Autolink' not found December 30, 2016, 05:39:40 pm Just got this error. Will try to debug further.Notice: Class 'BBC\Autolink' not foundBBC\ParserWrapper->getAutolinkParser() in /sources/subs/BBC/ParserWrapper.php at line 419call_user_func() in /sources/subs/BBC/ParserWrapper.php at line 130BBC\ParserWrapper->getParsersByArea() in /sources/subs/BBC/ParserWrapper.php at line 183BBC\ParserWrapper->parse() in /sources/subs/BBC/ParserWrapper.php at line 224BBC\ParserWrapper->parseSignature() in /sources/Load.php at line 1045loadMemberContext() in /sources/controllers/Profile.controller.php at line 99Profile_Controller->action_index() in /sources/SiteDispatcher.class.php at line 304Site_Dispatcher->dispatch() in /index.php at line 262elk_main() in /index.php at line 192http://localhost/Elkarte/index.php?action=profile;u=100
Re: Class 'BBC\Autolink' not found Reply #1 – December 30, 2016, 05:44:58 pm Only happens on PHP 7.1. 7.0 is fine.
Re: Class 'BBC\Autolink' not found Reply #2 – December 30, 2016, 06:26:25 pm Interesting ... do you know what changed in 7.1 that caused this issue?
Re: Class 'BBC\Autolink' not found Reply #3 – December 30, 2016, 06:45:34 pm O_oWhat's the easiest way to have multiple versions of php handy?
Re: Class 'BBC\Autolink' not found Reply #4 – December 30, 2016, 07:06:01 pm on my vps handled by serverpilot I can choose from 5 versions of php: 5.4, 5.5, 5.6, 7.0, 7.1on my laptop using Mint 18 (derivate of Ubuntu 16.04) which comes with php 7.0 I was able to install and switch from php5 to php7, I used this guide to do this:http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04/762161#762161
Re: Class 'BBC\Autolink' not found Reply #5 – December 30, 2016, 10:00:16 pm Quote from: Spuds – December 30, 2016, 06:26:25 pmInteresting ... do you know what changed in 7.1 that caused this issue?no.. this may help you http://php.net/manual/en/migration71.phpQuote from: emanuele – December 30, 2016, 06:45:34 pmO_oWhat's the easiest way to have multiple versions of php handy?wamphttp://www.wampserver.com/en/
Re: Class 'BBC\Autolink' not found Reply #6 – December 31, 2016, 09:59:38 am Hey if I had time to RTFM I would not have asked LOL I use vagrant for my multiple php versions, so just *nix with multiple php versions installed. I then ssh into the box and point the web server at whichever version I want to run. Recently I've started to play with a multi-machine setup where the db is in one instance and the web in the other, then I can share that db across multiple web versions and simply start "up" the version I want so I don't even have to ssh in to the box.
Re: Class 'BBC\Autolink' not found Reply #7 – December 31, 2016, 11:46:27 am I kinda failed in setting up multiple php in ispconfig though it is fully working if run directly under ubuntu. So, normally, I just use UniServer to test multple php in windows.
Re: Class 'BBC\Autolink' not found Reply #8 – December 31, 2016, 02:34:44 pm On Vagrant works fine with 7.1, I feel like it may be a windows issue, I'll install wamp and see.
Re: Class 'BBC\Autolink' not found Reply #10 – December 31, 2016, 05:57:03 pm Actually, not even php 7 works.It's windows specific, and even more the problem is stream_resolve_include_path that in 5.6 resolves properly to sources\subs\BBC\Autolink.class.php, while in php 7.x resolves to sources\Autolink.class.phpAny idea before I start reading about this function? (Hint: I would avoid having to read. LOL)
Re: Class 'BBC\Autolink' not found Reply #11 – December 31, 2016, 06:12:01 pm AHA!No need to read, it doesn't like the "absolute" reference \BBC\Autolink that is added by the autoloader.Remove it may break other things so... we have to check and think about it.
Re: Class 'BBC\Autolink' not found Reply #12 – December 31, 2016, 07:28:30 pm Actually, digging a bit more, the autoloader behaves in a completely different manner between windows and linux in php 7 and between windows and linux in general... emanuele smells troubles
Re: Class 'BBC\Autolink' not found Reply #13 – December 31, 2016, 08:20:37 pm The easiest solution I found so far to the specific problem is to prefix all the namespaces of the BBC classes with ElkArte...
Re: Class 'BBC\Autolink' not found Reply #14 – January 01, 2017, 09:10:38 am @live627 could you try the attached patch?It's another way to work around the issue.I'm not sure which one to pick, though.