Archived topic
400 Bad Request
7 replies · Started by Michael on February 22, 2019
I've setup a new Wordpress site and am trying to import a theme from the Site Library (at this point any theme) but always get stopped at the same spot - when trying to import the theme data. I continue to get a 400 Bad Request error message.
I've disabled any plugins and have even used WP Reset (https://wordpress.org/plugins/wp-reset/) to put the Wordpress install back to a default state after each attempt. The same error message at the same spot.
Looking on the server I see the following error:
[Sat Feb 23 01:08:07.320891 2019] [proxy_fcgi:error] [pid 21559:tid 140622597945088] [client 155.155.155.155:0] AH01071: Got error 'PHP message: PHP Warning: Creating default object from empty value in /home/runcloud/webapps/dev-wordpress/wp-content/plugins/gp-premium/sites/classes/class-site.php on line 766', referer: https://XXXX.com/wp-admin/themes.php?page=generatepress-site-library
Any suggestions on how to resolve this issue?
Hi there,
A 400 bad request error usually means the AJAX inside the admin isn't succeeding.
That could be another error within the site preventing it, or it could be that the security measures in the AJAX call are kicking in, preventing it from happening.
Do you have another server you can test on, possibly? If there are no other plugins, it likely means there's a server setting getting in the way.
That PHP warning looks like a small bug we need to fix, but it wouldn't cause a 400 error.
I checked the server config and the following functions was disabled:
getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server
I've again reset all of Wordpress removed all disabled functions and restarted the server and attempted the theme import again, sadly the results remained the same 400 Bad Request.
As a test I downloaded another framework and was able to use their site importer without issue. :\
Any chance you can send me temporary admin login details so I can take a closer look?: https://generatepress.com/account
If so, be sure to mention this topic.
Thanks!
Sure Tom. Where should I send the login info? I didn't see a place on my account page to enter that info.
I think he means https://generatepress.com/contact/
Ugh, sorry about that! Totally meant https://generatepress.com/contact/.
No worries. I sent you an email using the contact form. Thanks!