authentico
Forum Replies Created
-
When submit “Advanced settings” without setting any values, same error is thrown.
Checked all logs, could not find anything related to this error. Does not seem to be a PHP issue. And 406 error is not being logged in any of my logs (cpanel, server, php, etc).
Chrome Tools shows that upon clicking Save, a redirect is being attempted, and fails as a result of a cross-origin error.
cmp-error-2.jpg (1919×746) (ibb.co)
cmp-error-3.jpg (894×382) (ibb.co)
No idea how to even debug this.
Maybe it’s because I have “opcache” turned on in PHP. I’m using PHP version 8.1.
[Edit] Tried with “opcache” disabled and still no help. Here are the PHP options I have enabled/disabled.
cmp-error-4.jpg (1089×918) (ibb.co)
[Edit #2] The “Connection timed out” page says that the error could be related to something on the server hogging resources. Maybe there’s an API call in the Save request that is hanging.
ie. When I toggle the setting “Cookie Notice Compatibility” between Enabled/Disabled, sometimes it will save successfully. Then I try again, and it freezes again.
[Edit #3] New error message appeared, redirecting me to a help article about “mod_security”: https://support.stablehost.com/en/articles/2086975-working-with-modsecurity
[Edit #4] With “mod_security” disabled for the domain, it’s working. After enabling it again, seems to be fine now. Is your plugin sending a large amount of data in the Save request perhaps?
- This reply was modified 2 years, 9 months ago by authentico.
- This reply was modified 2 years, 9 months ago by authentico.
- This reply was modified 2 years, 9 months ago by authentico.
- This reply was modified 2 years, 9 months ago by authentico.
- This reply was modified 2 years, 9 months ago by authentico.
I tested on a fresh WordPress install on Stablehost, and I received the same 406 error 🤷♂️ Does not like how your Advanced settings is managing the request.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Hide posts that have password setI ran your question through ChatGPT, it suggested the following. Try it out and let me know if that works:
$params = array( 'limit' => 3, 'orderby' => 'post_date DESC', 'where' => 'post_password = ""', ); $news = pods('news', $params); while ($news->fetch()) { // Your code here }Oh, weird.
When I searched “wp et_code_snippet_type” on Google, WP Code was the first result, which is a plugin I’m using, I was confused how it could be generating URL slugs.
But correct, I am also using Divi, which I thought might be the initial culprit, but then I did the Google search and it sent me here.
I’ll check with Divi, thanks.
I’m logged into /wp-admin EDITING a new “post” (post already exists), within the custom post type I created using Pods.
{@ID}did not help either.I did some debugging.
The issue seems to be: when I upload a photo using File / Image / Video field using Plupload, the API request which uploads the file, it does not have any
$postinformation accessible.I’m also seeing PHP errors:
[30-Apr-2023 20:36:14 UTC] PHP Warning: Undefined property: stdClass::$item_id in \wp-content\plugins\pods\classes\fields\file.php on line 1189
[30-Apr-2023 20:36:14 UTC] PHP Warning: Undefined property: stdClass::$item_id in \wp-content\plugins\pods\classes\fields\file.php on line 1244Those seem to be trying to get
$params->item_id, where$paramsreferences the Ajax file upload request parameters.But it looks like none of the request parameters have a value
item_idanywhere.- This reply was modified 3 years, 1 month ago by authentico.
Also, one more issue with the Upload only (Plupload).
In File / Image / Video Options I have Upload Limit > Single File.
Issues:
- Even though I have a file already uploaded in the field, the “Upload” button is still visible (expected: this button should be hidden, until the user clicks “X” to delete the existing uploaded image).
- When the user clicks this “Upload” button and selects a file, it is uploaded and stored on the web server. But, the pod does nothing with this new file that was uploaded (does not overwrite the existing upload, does not display it in the list of available images/files). But the file does get uploaded to the /wp-content/uploads folder, wasting space on the server.
Additional issues:
- When user clicks “X” to delete an uploaded file/image, it is removed from the Pod, but the file continues to exist on the web server (expected: file should be removed from the web server at some point).