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

in Download Manager Free

Viewing 19 posts - 1 through 19 (of 19 total)
Jan 13, 2025 at 11:21 am
#202588
Participant
Marko Z.
OP

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

Jan 13, 2025 at 11:24 am
#202589
Moderator
Tahasin
Staff

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

Jan 13, 2025 at 11:37 am
#202590
Participant
Marko Z.
OP

Hi Tahasin,

The download manager plugin version is: 3.3.05

Jan 13, 2025 at 11:54 am
#202591
Moderator
Tahasin
Staff

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

Regards

Jan 14, 2025 at 5:14 am
#202628
Moderator
Tahasin
Staff
This reply has been marked as private.
Jan 14, 2025 at 8:32 am
#202635
Participant
Marko Z.
OP
This reply has been marked as private.
Jan 14, 2025 at 8:40 am
#202636
Moderator
Tahasin
Staff

Can I create a demo test package for testing purposes?

Jan 14, 2025 at 9:06 am
#202637
Participant
Marko Z.
OP

Hello, yes, that’s ok

Jan 14, 2025 at 9:09 am
#202638
Moderator
Tahasin
Staff
This reply has been marked as private.
Jan 14, 2025 at 9:19 am
#202639
Participant
Marko Z.
OP
This reply has been marked as private.
Jan 14, 2025 at 10:04 am
#202641
Moderator
Tahasin
Staff
This reply has been marked as private.
Jan 14, 2025 at 10:27 am
#202642
Participant
Marko Z.
OP

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"
Jan 14, 2025 at 10:44 am
#202645
Moderator
Tahasin
Staff

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.

Jan 14, 2025 at 10:49 am
#202646
Participant
Marko Z.
OP

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.

Jan 14, 2025 at 10:55 am
#202647
Participant
Marko Z.
OP

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

Jan 14, 2025 at 10:58 am
#202648
Moderator
Tahasin
Staff

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

Jan 14, 2025 at 11:08 am
#202649
Participant
Marko Z.
OP

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

Jan 14, 2025 at 11:27 am
#202652
Participant
Marko Z.
OP

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

Jan 14, 2025 at 11:39 am
#202657
Moderator
Tahasin
Staff

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)

The topic "WPDM – Newsletters: Cron Error (Cannot access offset of type string)" is closed to new replies.