How to test a campaign

Your software
My Mautic version is: 4.4.9
My PHP version is:8.0.29
My Database type and version is:mysql 8.0.27

Your problem
My problem is:
How should I test my Mautic campaign?
These errors are showing in the log:

Steps I have tried to fix the problem:
I tried to use the campaign builder and set that the contacts in a segment will be added to start the campaign. I added one contact to the segment and nothing happened. What shall I do?

Hi,

Have you made sure that you have cron jobs running?

I am not sure how you did your install, but if you did it manually you need to make sure you have the following two crons setup to run campaigns:
php /var/www/mautic/bin/console mautic:campaigns:update
php /var/www/mautic/bin/console Mautic:campaigns:trigger

Depending on the interval that these are set up so your campaign will be updated and fired. Also make sure your campaign is published.

There is an error.
Could not open input file: /var/www/mautic/bin/console

How did you do your Mautic install? Do you have access to your terminal

I installed my Mautic by GitHub.
I used my terminal in the folder of Mautic.

Hey wph524

you should be running these from the /var/www/mautic directory as typed below, you can run these manually if needed on the server without using your crontab.

php bin/console mautic:campaigns:update

then run
php bin/console mautic:campaigns:trigger

you should be able to find any logs in the /var/www/mautic/var/logs directory and the files are date stamped

Fatal error: Uncaught Error: Failed opening required ‘/Users/peihao-wu/mautic/vendor/autoload.php’ (include_path=‘.:/opt/homebrew/Cellar/php@8.0/8.0.29_1/share/php@8.0/pear’) in /Users/peihao-wu/mautic/autoload.php:3

Stack trace:

#0 /Users/peihao-wu/mautic/bin/console(7): require_once()

#1 {main}

thrown in /Users/peihao-wu/mautic/autoload.php on line 3

did you run composer install when you installed mautic?

Also are you running this locally on your machine or have you a server?