I have a problem when I want to create an entity under symfony 5.1.9 (I have the same problem under sf 4.4). I recently created a new SF project and still have the same concerns. The error message is as follows: In Validator.php line 158:
Argument 2 passed to Symfony \ Bundle \ MakerBundle \ Validator :: validateDoctrineFieldName () must be an instance of Doctrine \ Common \ Persistence \ ManagerRegistry, instance of Doctrine \ Bundle \ DoctrineBundle \ Registry given, called in D: \ phpProject \ API-bills \ vendor \ sy
mfony \ maker-bundle \ src \ Maker \ MakeEntity.php on line 303.
Thanks for help
It seems like the latest version is having some troubles. The easy fix for now is to modify your composer.json file and "downgrade" the doctrine/doctrine-bundle, from version ^2.1 to 2.1.0. After making this change, run composer update and everything should work.
As Florian said, referer to the maker bundle issues to see the complete reference on this error.
Related
I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1.
About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to
When I updated it, I found the following error.
"Class "Phalcon\Session\Adapter" not found"
I was using the following on my existing system.
use Phalcon \ Session \ Adapter \ Database as
I checked the following page
https://docs.phalcon.io/4.0/ja-jp/upgrade
The following changes have been made.
Removed Phalcon\Session\Adapter - replaced by Phalcon\Session\Adapter\AbstractAdapter
I tried the following, but the error still appeared.「"Class "Phalcon\Session\Adapter" not found"」
use Phalcon\Session\Adapter\Database as Database;
How can I solve it?
I am trying to install Magento 2 and run it on XAMPP server.
I have installed XAMPP and Apache and I've downloaded Magento 2 and extracted the file in htdocs.
But when I type http://localhost/magento in the browser I get this:
I think I should have the Magento setup page not this page.
And when I click on it the Magento folder I get this error:
Vendor autoload is not found. Please run 'composer install' under application root directory."
So what is the problem here? Can anybody help me?
For starting your magento, you need move files form magento2-2.3.5-pl to MAGENTO directory. (1 level UP)
Then you need install composer (https://getcomposer.org/).
And run terminal from magento directory and use command "composer install". This command will install additional libraries that are needed to run the engine
seems you have not downloaded magento with official website
there are 2 ways to install magento 2
1) downloading from magento website which i have discribed here http://this-adarsh.epizy.com/installation-of-magento-2/
2) via composer steps are given below
stap 1 : install composer
stap 2 : create database for magento installation
step 3 : get magento 2 marketplace key
step 4 : Create a new Composer project using
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition (if community edition)
or
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition ( if enterprise edition)
step 5: after successful creation of project run
bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin#admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1
(change your parameter like database name etc.)
you can find more at https://devdocs.magento.com/guides/v2.3/install-gde/composer.html
Let me know if you need anything else
Have a good day!
return Redirect::to('')
->with('message',SiteHelpers::alert('success','Password has been saved!'));
I am getting error in above line saying that
Symfony \ Component \ Debug \ Exception \ FatalErrorException
(E_UNKNOWN)
Class 'SiteHelpers' not found
I kept SiteHelper.php in this path /var/www/html/login_session/app/library
I added "app/library" in my composer.json and run composer install in my terminal
I'm using L5(dev version) and trying to create package.
Doing `php artisan workbench za-web/Sidebar --resources
It's creating for me structure and service provider.
And then I'm trying to add service provider to app/config.php
'ZaWeb\Sidebar\SidebarServiceProvider'
I've got the error:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR)
Class 'ZaWeb\Sidebar\SidebarServiceProvider' not found
Also was trying to do composer dump-autoload but it doesn't helped.
I've figured out whats wrong, theres no autoload seciton for workmench directory in bootstrap/autoload.php
I've add it and not everything ok.
if (is_dir($workbench = __DIR__.'/../workbench'))
{
Illuminate\Workbench\Starter::start($workbench);
}
I'm running Laravel on Digital Ocean and trying to use Mailgun. Everything is configured correctly but when I try to run my script I get the error
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR)
Class 'GuzzleHttp\Client' not found
on Symfony\Component\Debug\Exception\FatalErrorException
…/vendor/laravel/framework/src/Illuminate/Mail/Transport/MailgunTransport.php122
Has anybody encountered this issue?