update DB command //deploy static content // change permissions //deply setup content //enable/disable module
Using Docker I get the error: “SQLSTATE[HY000] [2002] No such file or directory”
If you face this error on your local then you need to change your DB configuration to run the project on local with docker. Your docker config file might look like In above settings (db:) this is your localhost so your database configuration will look likedatabase host: dbdatabase username: rootdatabase password : 12345 In short, […]
Argument 1 passed to App\Service\FileUploader::upload() must be an instance – symfony 4
If you face “Argument 1 passed to App\Service\FileUploader::upload() must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile, string given, ” this error while playing with files in Symfony 4. Then you need to change your file field in controller as. Change your code from to . Where task_logo is the name of the file field of your form. […]
Points to keep in mind while developing custom form in Magento 2 module on admin end.
Two things keep in mind 1) Form action could be defined as 2) Do not forget to add form_key else you would be going to waste your several hours on finding the dashboard redirection issue on form submission.
Magento2 InstallSchema.php does not create the table specified
DB schema command would not run again if it has been already executed so you need to remove database entry for your module in setup_module table. Removing the record from setup_module with module = ‘MyVendor_Helpdesk’ should make it run again. Keeping writing the good code 🙂
UI Component Listing And Not registered handle in Magento2
If you face below error in your Magento 2 custom module. Not registered handle [namespace]_[module]_team_index_data_source There is one reason for above error is that you are missing di.xml file from [namespace]_[module]/etc/ folder Copy the following code into di.xml file and place it in root of the etc folder of your module. Don’t forget to change […]
Load More posts feature in WordPress
Copy below code into your functions.php JS code to send Ajax call and recieve response Finally html button which will be clicked to load more posts again and again. <?php misha_paginator( get_pagenum_link() ); ?>
Code to generate Stripe token for testing purpose
Code to generate Stripe token for testing purpose
Sorry, there was a problem with handling your request – silverstripe
run below command to get rid off from internal server error /dev/build if your site is http://silverdemo.com then run command like below http://silverdemo.com/dev/build it will rebuild the database and models