Fatal error: Class 'RecursiveRegexIterator' not found - php

I recently did a fresh install of SE4 and after setting the folder permissions, I kept getting the following error: Fatal error: Class 'RecursiveRegexIterator' not found Adapter.php on line 248
I would be very grateful if anyone familiar with SocialEngine 4, could assist me in this issue
Many Thanks
Sammy

SE4 uses RecursiveRegexIterator which is PHP 5 >= 5.2.0
You would need to upgrade your PHP version for it to work .... and please note that PHP 5.1.6 is no longer supported.

Related

Laravel public folder shows 500 Internal Server Error

I have recently installed laravel through softaculous in CPanel. After the installation, when I tried to open the website, it shows 500 Internal Server Error. Actually, I am a beginner in Laravel. The following errors I got from error_log.
[08-Aug-2020 12:56:03 UTC] PHP Fatal error: Declaration of Carbon\Translator::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /home/hugar/public_html/jityo.com/vendor/nesbot/carbon/src/Carbon/Translator.php on line 18
[08-Aug-2020 12:56:03 UTC] PHP Fatal error: Uncaught ErrorException: Declaration of Illuminate\Http\Response::setContent($content) should be compatible with Symfony\Component\HttpFoundation\Response::setContent(?string $content) in /home/hugar/public_html/jityo.com/vendor/laravel/framework/src/Illuminate/Http/Response.php:14
Every assistance will be appreciated!.
Check the server php version and the php version in composer.json file of laravel framework, if it's not a match then you have to change the server php version and it will work like a charm. this happened with me as well.
The php version(7.1) on the server was lesser than php version in composer.json(7.2).
The problem fixed by upgrading the php version(7.4) on the server.

Fatal error: Interface 'JsonSerializable' not found in Cakephp

I'am getting below error. Please assist me in resolving this.
Fatal error: Interface 'JsonSerializable' not found in /home/onliuzgx/xyz.com/vendor/cakephp/cakephp/src/Mailer/Email.php on line 51
First you check your PHP version Cakephp requires 5.6.0 or greater (including PHP 7.2).
If you have proper PHP versoin you check your php.info Settings, if JSON is Enabled.
It will resolve the issue

Class 'ZurmoBaseTest' not found in EmailTemplateTest.php

I'm trying to run unit tests on zurmo and I've a problem, when I try the EmailTemplateTest. I get
Fatal error: Class 'ZurmoBaseTest' not found in zurmo\app\protected\
modules\emailTemplates\tests\unit\EmailTemplateTest.php on line 42
If I try to include it with require it fixes this, but then
Fatal error: Class 'BaseTest' not found in zurmo\app\protected\modul
es\zurmo\tests\unit\ZurmoBaseTest.php on line 38
and
Fatal error: Class 'RedBeanDatabase' not found in zurmo\app\protecte
d\core\tests\unit\BaseTest.php on line 44
If I include them both I get the final
Fatal error: Class 'Yii' not found in zurmo\app\protected\core\model
s\RedBeanDatabase.php on line 37
What's the problem? Am I supposed to run it from some exact location or the installation is not default. I installed it with the settup and the app is working itself.
You bootstrap is likely missing the autoloader of your framework and / or your framework's PHPUnit extension.
For anyone else looking for the answer to this one. You should run it via TestSuite.php
phpunit TestSuite.php EmailTemplateTest
TestSuite.php will include the necessary files for you.
http://zurmo.org/tutorials/running-unit-tests-explained

Installing php-PhantomJS on localhost

I'm trying to use php-PhantomJS on localhost (XAMPP 1.7.7, PHP: 5.3.8), but I cannot run example files and I'm getting the following error:
Fatal error: Class 'JonnyW\PhantomJs\Client' not found in
C:\xampp\htdocs\read\test\src\a.php on line 4
Class 'PHPUnit_Framework_TestCase' not found in C:\xampp\htdocs\read\test\test\JonnyW\PhantomJs\Test\ClientTest.php on
line 19
Can anybody help in guiding me how to install this script?
Have a look at http://www.thehackeruniversity.com/2014/01/05/getting-started-with-php-composer/
The instructions on that blog should be fairly easy to follow.

Symfony2: Fatal error: Interface 'Knp\Menu\Matcher\Voter\VoterInterface' not found in

I wanted to integrate twitter-bootstrap in my Symfony2 project and trying to make it work, I followed documentation is BootstrapBundle.
After installing all dependencies set in composer.json, i get this error:
Fatal error: Interface 'Knp\Menu\Matcher\Voter\VoterInterface' not found in /var/www/cv- editor/vendor/mopa/bootstrap-sandbox-bundle/Mopa/Bundle/BootstrapSandboxBundle/Navbar/Example/Voter/RequestVoter.php on line 12
Have you any idea ?
After debvugging, i found that there is a problem in dependencies of MopaBootsrapBundle which works with Knp-menu-bundle version 1.2

Categories