Strange error with Symfony-2.8 - debugging

I am using Symfony 2.8.18. I was always able to debug the previous error messages I had. I searched on Google for same errors but I did not find anything. Everything worked perfectly before. I restarted my local server and get the following error message:
Warning: class_implements(): Class �]� does not exist and could not be
loaded
Here is a link to the screenshot of the message: strange bug screenshot.
I deleted the cache by removing the corresponding folders and by using the following command:
php app\console doctrine:cache:clear-metadata && php app\console doctrine:cache:clear-query && php app\console doctrine:cache:clear-result
But it did not solve my problem. I do not know how to understand this error message.
Do you have any ideas on how to debug the code?

I did not change anything but it seems one or several files were corrupted. The solution was to:
Remove the vendor folder;
Run composer install.
My problem was solved by doing this.

Related

Nova on Laradock raises bcadd exception

I have a simple installation of Laravel with Laradock.
When I try to update a model, there is no problem.
However, when I install Nova and try to update some model (for example user name), I get the following error:
Looking at ajax call, I see the following error:
exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/var/www/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php"
line: 506
message: "Call to undefined function Moontoast\Math\bcadd()"
I tried to set PHP_WORKER_INSTALL_BCMATH to true in .env and rebuild docker image, but it didn't help.
I also found this issue:
https://github.com/laravel/telescope/issues/25#issuecomment-432302285
But it didn't help me to solve the problem.
For anyone else experiencing this issue this is what solved it for me:
bin/bash into docker container and run
docker-php-ext-install bcmath
Then restart server. This helped for my case. I would expect analogical steps would work for Laradock.

Joomla File not found error

I have clone the website from http://www.betaekwondo.com.au/ to http://www.be-ma.com.au/index.php
everything works fine but I am stuck and getting 404 file not found error only on below link
http://www.be-ma.com.au/programs.html
http://www.be-ma.com.au/be-fit.html
http://www.be-ma.com.au/programs/taekwondo.html
all links working in main site i just copy the files and database and change in configuration file as required. Please share you knowledge*
Links are not error And no problem!

Codeigniter - Sparks to composer, activerecord issues now

So I have just gone through a update going from CI 2.0.4 to 3.1.4 and ran into the issue with Sparks now being redundant I've had to move onto composer to get php active record working..
however I have had autoloading issues/ Solved by including the model directly into the controller ie: require_once(APPPATH.'models/User.php');
But now im getting the following error..
An uncaught Exception was encountered
Type: ActiveRecord\DatabaseException
Message: Empty connection string
Filename: /var/www/html/vendor/php-activerecord/php-activerecord/lib/Connection.php
Line Number: 105
btw to load the composer autoload I've put: config['composer_autoload'] = '../vendor/autoload.php'; as the vendor directory sits outside the application folder in its parents folder.
Any help would be greatly appreciated..
You can move the vendor directory to your public_html/www and try
config['composer_autoload'] = FCPATH.'vendor/autoload.php';

Magento 1.9 Installation Error

I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.

Artisan packages error

I'm having some trouble with artisan/packages.. I've added a package to my composer file and ran composer update and an error was returned:
PHP Warning: require(/home/xxx/public_html/bootstrap/autoload.php): failed to open stream: No such file or directory in /home/xxx/public_html/artisan on line 16
I can see that require path is incorrect, my structure is like so:
/home/xxx/bootstrap
/home/xxx/app
/home/xxx/vendor
/home/xxx/public_html
I hadn't changed any of the paths and everything seemed to work out of the box with this structure, basically removing the public folder and pushing everything up a directory.
I've opened up Artisan tried a couple of paths that kept failing so i've changed them to absolute:
require '/home/xxx/bootstrap/autoload.php';
It seemed to work from here on, but at the end of the process got another error:
Writing lock file
Generating autoload files
[RuntimeException]
Could not scan for classes inside "app/commands" which does not appear to be a file n or a folder
Rather than continue to mess it up i thought now would be a good time to clear it up, any ideas how to fix this?
Make sure you are using php 5.3 or higher.
Run php -v
Try creating an empty "app/commands" folder, fixed the issue for me!

Resources