I struggle for 3 days now to get a simple Message Queue in Magento 2 to work. Here are my XML files: communication.xml: queue_consumer.xml: queue_publisher.xml: queue_topology.xml: So adding messages to the queue works (I see it in the database table “queue_message”), however when I execute php bin/magento queue:consumers:start erp.queue.order I always get the following exception: My consumer test code: I
Get link by id API/URL
I have this code I want to get link by id. Can anyone help? Answer More ore less what you need could be: This will output: Desired link = http://46.105.112.116/?watch=TN/mbc3-ar&token=RED_cexVeBNZ8mioQnjmGiYNEg==,1643770076.5266113827&t=1&s=2&p=1&c=BR&r=1351&lb=1 If you prefer, … I’ve also implemented a little class to do the same job:
How to solve Laravel cant connect with mysql through docker
Im trying to deploy my laravel app using docker. Then I created docker-compose.yml file and Dockerfile like below. docker-compose.yml Dockerfile And when I try docker-compose up, all the containers run with a any error. And also when I run docker-compose ps, it shows like this, But, when laravel application, tries to connect with mysql, it doesnt happens. And even I
Error when trying to fill in form in Laravel 8
I am trying to create a form in Laravel, which has different fields that should be filled in. This is my code for the rules. They are stored in custom Request class: The store method is the following: This is my view: Now, when I try to fill in everything I get always the following error: The name must be
Google drive upload with out the google api library
Can we upload files by creating a request from PHP with out using the google api library ? https://developers.google.com/drive/api/guides/manage-uploads#http_1 Answer The google drive api is a simple rest api. As long as you can send a http post you will be able to upload the file. There is some documentation on how to format the file for upload manage-uploads#http Pay
extract numbers from a string if they meet a specific condition [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago. Improve this question In the following string there are some numbers followed by two letters “ST”. How can I extract all of those
Getting Post Thumbnail to show for Single Post Obect (WP + ACF)
I am having a hard time getting the Wordpress thumbnail to show up when I am using Advanced Custom Fields Pro Post Object. My goal is to have the user select a single featured post to show up after the 6th post on the blog page. This is my code (which is pretty much directly from ACF documentation): This returns
Do I really need to be Installing AWS Common Runtime for PHP to work with the AWS PHP SDK
I’m using the AWS SKP for PHP in a Laravel app. When I try to create a client (for EventBridge in my case) I am getting the following error: The error includes a link with information on installing it, however, I have kind of a hard time believing that Jeff Bazos has abused his developers so horribly they have decided
How to use a custom model’s method as property in Laravel 9?
In Laravel 9 I use Blade and Spatie´s Permisisons for authorisation. In addition I redirect admins to other Controllers / Layouts / Views than I redirect normal users to. With that approach I use the users table for both, admins and users. But users have a second table called clients with special normal user´s attributes. The Client model has a
How to access specific array index and display it? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago. Improve this question So in this project i have 3 PHP files, namely index.php, processor.php, and viewsubmission.php My index.php and processor.php both works