WPDM – Newsletters: Cron Error (Cannot access offset of type string)

Viewing 19 posts - 1 through 19 (of 19 total)
#202588

Marko Z.
Participant

Hi, recently the WPDM – Newsletters addon stopped working, we get an error message when running the cronjob. The plugin itself is up to version 3.3.1 and WPDM Free itself is up to version 3.3.05. We have not made any changes to the site!

Enclosed is the error log:

[13-Jan-2025 11:14:02 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php:183


Stack trace:

#0 /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php(65): CAMPAIGN\UTIL\Mailer->sendMail()

#1 /var/www/html/wp-content/plugins/wpdm-newsletter/wpdm-newsletter.php(113): CAMPAIGN\UTIL\Mailer->cronHandler()

#2 /var/www/html/wp-includes/class-wp-hook.php(324): CAMPAIGN\EdenCampaign->cronHandle()

#3 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

#4 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action()

#5 /var/www/html/wp-includes/class-wp.php(830): do_action_ref_array()

#6 /var/www/html/wp-includes/functions.php(1336): WP->main()

#7 /var/www/html/wp-blog-header.php(16): wp()

#8 /var/www/html/index.php(17): require('...')



}

  thrown in /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php on line 183

Thanks and regards Marko

#202589

Tahasin
Moderator

Hello, Marko

I hope you are doing well and thanks for reaching out.

Could you kindly let me know which version of the Download Manager plugin you are using?

Regards

#202590

Marko Z.
Participant

Hi Tahasin,

The download manager plugin version is: 3.3.05

#202591

Tahasin
Moderator

We have identified the issue and are working to fix it as soon as possible. Thank you for your patience.

Regards

#202628

Tahasin
Moderator
This reply has been marked as private.
#202635

Marko Z.
Participant
This reply has been marked as private.
#202636

Tahasin
Moderator

Can I create a demo test package for testing purposes?

#202637

Marko Z.
Participant

Hello, yes, that’s ok

#202638

Tahasin
Moderator
This reply has been marked as private.
#202639

Marko Z.
Participant
This reply has been marked as private.
#202641

Tahasin
Moderator
This reply has been marked as private.
#202642

Marko Z.
Participant

Hi,
The Crontab example.com/?cron_handle=1

Unfortunately still produces the same error.

[14-Jan-2025 10:24:02 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php:183

Stack trace:
#0 /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php(65): CAMPAIGN\UTIL\Mailer->sendMail()
#1 /var/www/html/wp-content/plugins/wpdm-newsletter/wpdm-newsletter.php(113): CAMPAIGN\UTIL\Mailer->cronHandler()
#2 /var/www/html/wp-includes/class-wp-hook.php(324): CAMPAIGN\EdenCampaign->cronHandle()
#3 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action()
#5 /var/www/html/wp-includes/class-wp.php(830): do_action_ref_array()
#6 /var/www/html/wp-includes/functions.php(1336): WP->main()
#7 /var/www/html/wp-blog-header.php(16): wp()
#8 /var/www/html/index.php(17): require('...')

}
  thrown in /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php on line 183
2a01:4f8:c01f:c0:1002::11 - - [14/Jan/2025:10:24:02 +0000] "GET /?cron_handle=1 HTTP/1.0" 500 3230 "-" "Cronicle/1.0"
#202645

Tahasin
Moderator

it might be a server error, as you can see 2a01:4f8:c01f:c0:1002::11 - - [14/Jan/2025:10:24:02 +0000] "GET /?cron_handle=1 HTTP/1.0" 500 3230 "-" "Cronicle/1.0"
500 status code indicates that something went wrong on the server side while processing the request.

Please reach out to your server support team for assistance in resolving this issue.

#202646

Marko Z.
Participant

The error is caused by your script!

PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/wpdm-newsletter/campaign/util/mailer.php:183

I am the server admin! And the error comes from your script, both as crontab or when I call the cron URL. As the server admin, I can’t fix anything if the error comes from wpdm-newsletter.

#202647

Marko Z.
Participant

Where can I download the previous version of WPDM – Newsletters?

#202648

Tahasin
Moderator

Unfortunately, there is no option available to download the previous version.

#202649

Marko Z.
Participant

ok then I’ll import the one from the backup. Thank you!

#202652

Marko Z.
Participant

Can be closed, we have now fixed the problem ourselves. Thank you very much!

#202657

Tahasin
Moderator

Glad to hear that, it is fixed now.

If you encounter any issues with the newsletter or pro add-ons, please post them in our pro forum: https://www.wpdownloadmanager.com/support/forum/download-manager-pro/

Regards

Viewing 19 posts - 1 through 19 (of 19 total)

You must be logged in to reply to this topic.