[Support request] 400 Bad Request

Home Forums Support [Support request] 400 Bad Request

Home Forums Support 400 Bad Request

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #818268
    Michael

    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?

    #818281
    Tom
    Lead Developer
    Lead Developer

    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.

    #818584
    Michael

    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. :\

    #818902
    Tom
    Lead Developer
    Lead Developer

    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!

    #819950
    Michael

    Sure Tom. Where should I send the login info? I didn’t see a place on my account page to enter that info.

    #819954
    Ender
    #820177
    Tom
    Lead Developer
    Lead Developer

    Ugh, sorry about that! Totally meant https://generatepress.com/contact/.

    #820180
    Michael

    No worries. I sent you an email using the contact form. Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.