Live Preview Error

Hi Rad,

Thanks for your comments. I have changed the PHP version to 7.2, as suggested. Does this make any difference from what you see?

Thanks,
Christopher

Hi Christopher,

The new error is this,

Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

And yes, it’s related to ajax, please check this https://stackoverflow.com/questions/26261001/warning-about-http-raw-post-data-being-deprecated. Maybe it’s the root of issue since internal error is only present from ajax requests. Could you try implementing the fix.

Thanks!

Hi Rad,

I do not have the “always_populate_raw_post_data” setting in php.ini for this website for some reason. I have checked other websites hosted elsewhere and they do have the setting. Below is all that is in php.ini:

; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)

allow_url_fopen = Off
allow_url_include = Off
asp_tags = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 300
max_input_time = 600
max_input_vars = 1000
memory_limit = 512M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php56"
upload_max_filesize = 20M
zlib.output_compression = Off

Any other ideas?

Thanks,
Christopher

Hi Susan,

Please try adding this line on that php.ini as well

always_populate_raw_post_data = -1

Then let me know : and I’ll test it again.

Thanks!

Hi Rad,

That line has been added to php.ini.

Thanks,
Christopher

Hey Christopher,

Your host might not be allowing that setting to take effect. Please contact them to ensure that the setting works.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.