• Resolved Kevin Geary

    (@cytkevin)


    I’m having an issue where the Oxygen Builder throws a 500 internal error when editing Oxygen Templates when Custom Post Type UI is active. Interestingly, the Oxygen builder loads normally on pages and post types, but throws the error on templates making editing impossible.

    Note:

    1. This only happens on one specific install (all plugins disabled except Oxygen/CPTUI
    2. I have multiple sites using both these plugins fine on the same host.

    Any ideas what could be causing this conflict only on one of my sites and none of the others?

    Have tried multiple wordpress versions and multiple Oxygen versions and the issue persists. Memory was increased to 512M and it still persists. Another dev I talked to said it might be an issue related to opcache limits, but not sure about that.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Wish I did have some ideas, but “Internal Server Error 500” errors can be notoriously difficult to debug. Best I can suggest at the moment is checking any error logs you have available for this install and see if anything stands out.

    Also if able, like this is a site still in some development and not public, disable every plugin not needed and see if it still happens, or if the error goes away. If it does, then start re-enabling a few at a time until it comes back and narrow down the possible contributing plugin.

    Thread Starter Kevin Geary

    (@cytkevin)

    As I mentioned, we already disabled all plugins. The issue is specifically related to Custom Post Type UI & Oxygen Builder and it’s only happening on this individual install.

    Oxygen has to be active for the site to run. So with that active by itself, there are no issues. When we activate all other plugins aside from CPTUI, there are no issues. When CPTUI is active, whether by itself or with other plugins, the issue appears.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sorry about missing that part in item 1. My apologies there.

    Error logs are still going to be your best bet here, since “Error 500” can be caused by any of many things. Only other suggestion i have for possibly digging in would be your browser’s developer tools like the console or network tabs.

    Thread Starter Kevin Geary

    (@cytkevin)

    I have the logs but don’t really know what I’m looking at. Can I send them to you somehow?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    [email protected] will reach me and i’ll be able to start checking them as soon as I can.

    Thread Starter Kevin Geary

    (@cytkevin)

    Sent, thank you!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Responded privately with my thoughts and possible suggestions of what to do next.

    Thread Starter Kevin Geary

    (@cytkevin)

    Did you respond by email? I haven’t seen anything come through?

    Thread Starter Kevin Geary

    (@cytkevin)

    Nevermind, got it!

    Hey Kevin, Michael,

    I’m having the same issue, wondering what did the trick/what was suggested in the email.

    Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Abstracted out some details but this is what I last had from the private correspondence.

    My hunch was that it’s an AJAX issue occurring when this Oxygen Builder is trying to get some template data.

    Specifically their ct_get_template_data ajax action and the corresponding callbacks. It seems something is going on in that part of the code to cause the error.

    May not hurt to reach out to their support and see what they have to say. I have provided below a couple examples from the error log that may be of use to them, and what I was looking at for my hunches above.

    [03/Mar/2021:00:17:35] “POST /wp-admin/admin-ajax.php?action=ct_get_template_data&nonce=c5c53a0718&post_id=73&preview_type=&template_id=73 HTTP/1.1” 500 1167 “ABSTRACTED-OUT/?ct_template=primary&ct_builder=true&oxygen_iframe=true” “Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36” ABSTRACTED-OUT PASS

    [03/Mar/2021:19:47:57] “POST /wp-admin/admin-ajax.php?action=ct_get_template_data&nonce=b26f7de7d9&post_id=172&preview_type=&template_id=172 HTTP/1.1” 500 1167 “ABSTRACTED-OUT/?ct_template=basic-page&ct_builder=true&ct_inner=true&oxygen_iframe=true” “Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36” ABSTRACTED-OUT PASS

    Possibly the nonce is failing, which they should understand if you’re not quite sure what that is, possibly something else?

    Hi guys. I saw this marked as resolved but don’t actually see the solution posted. I am having the same issue at the moment. Oxygen loads fine in pages, posts, re-usable parts, but throw’s a 500 when trying to edit a template. Error log is completely clean, so I’m at a loss here.

    I went ahead and disabled CPT UI and just like that the template editor loads fine. Obviously CPT UI is a critical utility plugin that I’d rather not have to switch on/off every time a template needs to be edited.

    Could you please kindly point me in the direction of the solve you came across?

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Chances are it got closed out by me due to no new activity.

    Without the access myself, I can only speculate that possibly similar errors are going on with your site like nonce failures and whatnot. Also won’t hurt to reach out to Oxygen support since it’s them providing the template functionality and whatnot.

    Thanks @tw2113 – Much appreciated, thanks for the follow up.

    @cytkevin – Did you happen to record your solution here by chance, or the response from the Oxygen team if you reached out to them?

    Posting some more feedback here after more troubleshooting. This issue looks to be related to Oxygen specifically as the error occurs on the register_post_type hook, and is not an actual problem with CPT UI.

    I removed CPT UI and registered all CPT’s and Taxonomies manually with PHP and the problem persists.

    Through process of elimination, I found the 500 error was only being throw on the registration of one specific post type. I replicated the exact registration settings to register a new post type and the templates loaded successfully, so the issue is also not related with the actual registration parameters either.

    I tweaked WP’s load.php to provide the AJAX error in the console, but it was unfortunately it was just an empty string (https://prnt.sc/1js4klx). Another dead end.

    This is were I have landed to date. This specific post type does have ~20K posts on the site, so perhaps this is a memory/loading timeout issue. Hope this helps anyone out there in their troubleshooting!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘CPT UI & Oxygen Builder Server 500 Error’ is closed to new replies.