I’m trying to create symfony 5.4 project using docker with a container for apache, php fpm, symfony, mysql db. but actualy i don’t succed to create my database, i get this error: this doctrine conf : config/packages/doctrine.yaml: this is extensions activated : this my Docker-compose-stack-file: a…
Laravel 9.x Contact form can’t connect to class
I’m trying to make a contact form. Main idea is user will send data, I will save the data to database, I will get the data from database, I will send the data as an email. I was following a tutorial -> https://www.positronx.io/laravel-contact-form-example-tutorial/ When I tried to reach classes on my…
Getting rid of numbers in a json response ( LARAVEL 9 )
i’m having some problems with my json response. When I make an api call from a user (id:1) it returns the response well, but if i change the user (f.e id:2) it returns it with some identifiers on it. Any idea? Response from id:1 Response from id:2 Thanks! EDIT 1 This is how I am getting the response: An…
oci_execute(): ORA-06550: PLS-00306: wrong number or types of arguments in call to ‘GET_CITIZEN_INFO’
My PHP code: My procedure Error I am proving correct number of argument so what seems to be wrong here? Answer You are providing the correct number of arguments, but not necessarily the correct type of arguments. You might need to specify at least the first and last parameter types: docs
PHP “||” is returning the wrong value
I am making an upload script for a music-related thing i am building. I check whether the file is an MP3 or an OGG, but even if it IS, php will return true on this and say that it isnt on either of these checks. Here’s some example code: What it returns: If i am doing something wrong, i am
Why is PHP saying my class name is already being used when It’s the first time I’ve declared it
Apologies for the long code, it’s 4 files but I have no choice since the problem can be any where. Thankfully I’ve found the solution I’m just trying to figure out why this had happened in the first place, so that will probably cut down the time significantly. classes/Cart.php classes/CartIt…
How to run a shell script from a html page on raspberry Pi
I’m trying to have a button on a webpage, hosted on my raspberry Pi, shutdown a QNAP via a script. The script works when I run it from the pi command line. I’ve tested it. I can also see the html page is working, to a point where the key is added to the url when I click the button.
cache with dynamic pages
I am currently developing a WEB site on symfony 6 and during production testing I have a problem with the TWIG cache. Indeed, my site includes a page editing feature. So when rendering the first time, the page is rendered correctly. However, if the editor then modifies the page, and I return to the page is st…
Laravel : get only the clicked image to display, and not all of them
Yo everyone! I’m actually working on a lil’ project to learn laravel and here is the thing I struggle to achieve : I want the image I click on to be displayed in a view, but not all of my images (my images are stored in a database). I think the code is pretty simple, I’ll share it with you
Phpmyadmin menu items are not visible. What would be the reason?
I installed my Laravel application on digitalocean with LEMP stack. Afterwards, I followed the instructions for phpmyadmin installation, but when I log in to phpmyadmin, the menu elements disappear 2-3 seconds after the page is loaded and the panel does not work properly. I leave the sample image below. How c…