kryo91
May 29, 2024, 10:01pm
1
Hello, I have an error that I cannot correct, when I run my form I have this message that appears
{
"code": 0,
"file": "\/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/modules\/mail.php",
"line": 51,
"message": "Class \"PHPMailer\\PHPMailer\\PHPMailer\" not found",
"trace": "#0 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(206): modules\\mail->send()\n#1 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(178): lib\\App->execSteps()\n#2 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(146): lib\\App->execSteps()\n#3 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/modules\/core.php(100): lib\\App->exec()\n#4 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(206): modules\\core->condition()\n#5 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(178): lib\\App->execSteps()\n#6 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(146): lib\\App->execSteps()\n#7 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(135): lib\\App->exec()\n#8 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnectLib\/lib\/App.php(113): lib\\App->exec()\n#9 \/var\/www\/vhosts\/stihl-outils-pro.fr\/sousdomaines\/pro-event2\/dmxConnect\/api\/Participants\/Inscription\/Inscription.php(8): lib\\App->define()\n#10 {main}"
}
Thanks
You must be confused watching old tutorial my friend..
Now you just setup once the mailer in your globals.
Then in your api you just add the send email step
This doesn't change, I still get the error
Apple
May 30, 2024, 5:43am
4
How are you uploading the website to your server? Are you uploading through Wappler?
And this might be useful:
Intro
Composer is a tool for dependency management in PHP. By including it in Wappler and enabling it, Composer will manage (install/update) the libraries your project depends on (for example Stripe, AWS, etc.). Using package managers like PHP Composer provides several benefits, including easy management of dependencies, version control and simplified installation and updates.
Enable PHP Composer
You can enable and use Composer in your PHP projects.
*As of 4 May 2023, this is still a beta fe…
Checked for updates?
Have you set-up you mail correct?
And of course check @Apple 's suggestion
Hello, I send my files via FTP like, I do it for all my projects, I have never had this problem.
after some research I see in fact that the PHPMailer directory is not present in the dmxConnectLib directory,
on your local target, can you see the PHPMailer directory and the files included there in the dmxCoonectLib directory?
If yes, then one thing that comes to my mid is that the ftp uploader is confused from the previous/initial uploaded files and skip the uploading of the current directory...
Can you check this?
(similar problem I had with securityprovider and I had to upload the updated files manually...)
No I don't have the folder at all locally, but I found a Wappler error telling me that it failed to install composer, I think C redis 2022 is missing on my PC I'm going to test
No nothing happened, I uninstalled then reinstalled the latest version of dewappler but I still get this message
the file is present
@teodor Do you have an idea, please
kryo91
May 30, 2024, 8:03am
10
I download GitHub - ScoopInstaller/Extras: 📦 The Extras bucket for Scoop.
I extract to Scoop repertory C:\Users\kryo9\Downloads\Extras-master\Extras-master\bucket
I recheck system in wappler
Php correctly installed but it does not install my PHPMAILER dependency
kryo91
May 30, 2024, 8:30am
11
Solution Dechecked Use Composer