Illegal String Offset Fatal Error

in Download Manager Free

Viewing 11 posts - 1 through 11 (of 11 total)
Jan 14, 2021 at 5:02 pm
#144538
Member
hiwire
OP

When trying to download small single PDF files I am getting this error repeatedly:

Warning: Illegal string offset ‘60007744e10ac’ in /public_html/wp-content/plugins/download-manager/libs/class.DownloadStats.php on line 50

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 600077440000000032 bytes) in /public_html/wp-content/plugins/download-manager/libs/class.DownloadStats.php on line 50

I’ve searched around but can’t find anything.

Wordpress: 5.3
WPDM: 3.1.12
PHP Version: 7.3.23
PHP Max Input Vars: 3000
WP Memory Limit: 768 MB
PHP Time Limit: 120

Jan 14, 2021 at 5:05 pm
#144540
Moderator
Nayeem Riddhi
Staff

Please, give your temporary wp-admin login details in a private reply for checking the issue.

Thanks

Jan 14, 2021 at 5:12 pm
#144542
Member
hiwire
OP
This reply has been marked as private.
Jan 15, 2021 at 5:18 pm
#144612
Member
hiwire
OP

I see that other people are getting similar memory allocation errors, any luck looking into this?

Jan 18, 2021 at 6:38 am
#144725
Moderator
Nayeem Riddhi
Staff

I think this is causing for PHP memory setting

Fixing the Error there are a couple of ways on how to go about resolving this error. These include:

1.Editing the wp-config.php file
2.Editing the php.ini file
3.Editing the .htaccess file

1.Editing the wp-config.php file

Here you will need to edit thewp-config.php file.
define( 'WP_MEMORY_LIMIT', '1024M' );

2.Editing the php.ini file

On a live install, the file can be accessed within the root of your install, that is within the /public_html/ folder. Note that the file is not installed by WordPress but in most cases set up by your host. If you are using CPanel as your control panel, for example, make sure the checkbox for “Show Hidden Files” is checked and then click Go. You may check into this article on how to go about editing the file. Before editing the file, kindly preserve a backup to it by downloading it to your computer.
Once this is done, open the file, add or edit the following line:

memory_limit 512M

3.Editing the .htaccess file

The .htaccess file is a file located within the root of your WordPress files.

You will need to add or edit the following code to the bottom of the file:

php_value memory_limit 256M

With this done, you can then save your changes and check if the error is resolved.

Thanks

Jan 18, 2021 at 10:19 pm
#144774
Member
hiwire
OP

My current memory limit is 768MB, I can’t imagine why WPDM would need a gigabyte of memory to download a 300k PDF!

The issue seems to be sporadic, because sometime the files will download and other times not, and it’s not related to just a single file.

This issue is starting to fill up the forums here, so there is defintely something that needs to be fixed with the plugin.

I am also getting string errors in the preview area when using the Preview template. Instead of a preview I get errors.

Jan 19, 2021 at 6:24 am
#144795
Moderator
Nayeem Riddhi
Staff

Can you please set the memory 1024MB for checking, many users get resolved with this, let me know

thanks

Jan 19, 2021 at 5:22 pm
#144854
Member
hiwire
OP

I added the line of code to the wpconfig file as requested. I didn’t change any of the other settings. I tried to download a new file and am now getting this error:

Warning: Error while sending QUERY packet. PID=58385 in /public_html/wp-includes/wp-db.php on line 2056

Warning: Error while sending QUERY packet. PID=58385 in /public_html/wp-includes/wp-db.php on line 2056
Headers already sent in /public_html/wp-includes/wp-db.php on line 2056

As well as this error still:

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 6007151408 bytes) in /public_html/wp-content/plugins/download-manager/libs/class.DownloadStats.php on line 50

This isn’t happening all the time, only sometimes. If I try to download the same file twice it mostly works on the second or third try.

Jan 19, 2021 at 5:26 pm
#144855
Moderator
Nayeem Riddhi
Staff

Ok, i shall try to check your issue details in tomorrow

thanks

Jan 19, 2021 at 5:27 pm
#144856
Member
hiwire
OP

Thanks! Much appreciated.

Jan 25, 2021 at 9:56 am
#145214
Participant
Hallo Welt

Any updates here? I am facing the exact same issue!

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

The topic "Illegal String Offset Fatal Error" is closed to new replies.