phpunit: get more debugging information when I get an error - phpunit

I'm interested in getting more dubugging information when I get an error.
Now I'm getting something like this:
PHP Fatal error: Class 'MyFirm\PlatformBundle\Entity\Review\LandmarkReviewRepository' not found in /home/me/mf/myfirm2/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php on line 577
Fatal error: Class 'MyFirm\PlatformBundle\Entity\Review\LandmarkReviewRepository' not found in /home/me/mf/myfirm2/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php on line 577
but it's not enough for me, I want to know the some more functions or files where called right before that error happens.
Any idea?
phpunit 3.5.14
Regards
Javi

Install xdebug: it gives you better stacktraces.

Related

How can I solve this error "Fatal error: Cannot redeclare retrieve_password()"

I'm getting a error message when accessing 'wp-login.php' page and do not know how to fix it:
Fatal error: Cannot redeclare retrieve_password() (previously declared in E:\Inetpub\vhosts\winningbizzness.com\httpdocs\wp-login.php:311) in E:\Inetpub\vhosts\winningbizzness.com\httpdocs\wp-includes\user.php on line 2671
I had the same issue here and it was caused by a WordPress update failure where some files were missing or corrupted.
I quickly resolved just reinstalling WordPress. In my case I used FTP, as in this guide: https://kinsta.com/blog/reinstall-wordpress/
Hope it helps anyone reading this answer!

stunnel4 Error. INTERNAL ERROR: Bad magic at ssl.c, line 117

stunnel4 Error. INTERNAL ERROR: Bad magic at ssl.c, line 117. when restart stunnel4 service then solve issue, but after some time face again issue.
This has been reported:
https://bugs.launchpad.net/ubuntu/+source/stunnel4/+bug/1847275
It still hasn't been fixed. See here for a workaround.
https://scottiestech.info/2020/06/23/fix-stunnel-bad-magic-at-ssl-c-error-crash-on-ubuntu/

Compilation Error on my server on SmartStore App

I have installed SmartStore on my server. everything is working fine except the add category module. when ever I try to Add or Edit any category an error pops saying :
Compilation Error Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source
code appropriately.
Compiler Error Message: CS0121: The call is ambiguous between the
following methods or properties:
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Action>)'
and
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Func,object>)'
Line 441: .ToolBar(commands => commands.Template(CategoryProductsGridCommands))
Please help me out. I m stuck :(
After working on it, we got the solution for this. So kindly try like this.
Hope will work
.ToolBar(commands => commands.Template(pp=>GridCommands(pp)))

Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in

Excuse my english, i am french. I have a error when i install fos User bundle of symfony2.
I follow all instructions on this page : http://symfony.com/doc/current/bundles/FOSUserBundle/index.html
When i do this command : php bin/console doctrine:schema:update --force, i have a error.
This is my error :
Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in C:\P
rogram Files\EasyPHP-DevServer-14.1VC9\Ecommerce\app\console on line 19
Help me please
It's late but it could help others people who are facing the same problem.
It seems like you are missing a component. I would suggest trying a "composer update" (I don't think it will work) in this case, i will be a bit more brutal and delete my vendor folder and reinstall everything with a "composer install".

Undefined variable $output in Symfony Component Console DialogHelper

I tried to run symfony console command, but I've got an error:
Notice: Undefined variable: output in /var/www/.../vendor/symfony/symfony/src/Symfony/Component/Console/Helper/DialogHelper.php line 411
I have no idea, why it went wrong.
Can anyone help?
I've solved the problem: this error appears because exec() and shell_exec functions was disabled in php.ini file. To enable this functions you have to edit this string:
disable_functions =exec,passthru,shell_exec,system,proc_open
and delete exec, shell_exec:
disable_functions =passthru,system,proc_open

Resources