Illegal String Offset Fatal Error

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

hiwire
Member

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

#144540

Nayeem Riddhi
Moderator

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

Thanks

#144542

hiwire
Member
This reply has been marked as private.
#144612

hiwire
Member

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

#144725

Nayeem Riddhi
Moderator

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

#144774

hiwire
Member

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.

#144795

Nayeem Riddhi
Moderator

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

thanks

#144854

hiwire
Member

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.

#144855

Nayeem Riddhi
Moderator

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

thanks

#144856

hiwire
Member

Thanks! Much appreciated.

#145214

Hallo Welt
Participant

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.