dgcov
Forum Replies Created
-
I’m having a very similar issue. I have both Sucuri and Wordfence installed.
This is the report from Sucuri:
Event: Post Update
Website: https://coventrysoap.co.za
IP Address: 51.68.215.97
Reverse IP: vps-30b425d9.vps.ovh.net
Date/Time: November 4, 2023 7:49 pm
User: wp_update-1699123160 (wp_update-1699123160)
Message: Post status has been changed; details: ID: 810,Old status: new,New status: auto-draft,Title: Auto DraftI’ve deleted the user (which had admin privileges), but this has happened several times.
~ Dave Coventry
Forum: Fixing WordPress
In reply to: Error calling function add_global_groups() wp-includes/cache.phpOk, I don’t know how it happened, but it appears that my site is back up.
Baffling.
Forum: Fixing WordPress
In reply to: Error calling function add_global_groups() wp-includes/cache.phpThanks for your input.
I am running a ubuntu 20.4 server on a South African VPS.
All plugins and themes were removed and a new WP installed, but using the database from the old site, but the problem persists, so I don’t think it’s the plugins or themes (only using the default theme, anyway).
I can’t login to the site (the error message is on all pages), so the repair option is a non-starter.
Forum: Fixing WordPress
In reply to: WordPress not sending emailsThanks, Yui.
Email now working. There was also an empty directory in /etc/postfix/ called dynamicmaps.cf.d which
postconf -m
said “permission denied”.I deleted this and replaced it, and it now seems to be working.
- This reply was modified 3 years, 4 months ago by dgcov.
I have this issue on a brand new test installation on a Nginx server. No plugins.
Switching the permalinks back to &p=123 solved it, but this clearly isn’t an ideal solution.
Forum: Fixing WordPress
In reply to: post displaying shorcodesI’m having a similar issue (if I read your problem correctly).
My shortcode is simply to display the login form as per instructions here.
If I add the shortcode
[wp_login_form]
in Gutenburg, using the ‘Add shortcode block’, it simply renders the shortcode verbatim, including the square brackets instead of firing the php function to display the login form as expected.If I examine the page source, it gives me this:
<div class='h-col'><div id="post-44" class="post-44 page type-page status-publish hentry"> <div> <p>[wp_login_form]</p> </div> </div>
Which isn’t quite what I want.
Apologies if this isn’t what the OP was describing…
~ Dave
Forum: Developing with WordPress
In reply to: redirect generates “Headers already sent” errors.Thanks.
I’m pretty sure that this is a fairly common scenario.
My solution (in view of your suggestion) is to mimic the login page fields and hiddene-fields.
$userID=get_current_user_id(); if (!$userID){// 4. $loginURL=wp_login_url(); $currentPage=$_SERVER['REQUEST_URI']; echo '<form name="loginform" id="loginform" action="'.$loginURL.'" method="post"> <p> <label for="user_login">Username or Email Address<br /> <input type="text" name="log" id="user_login" class="input" value="" size="20" autocapitalize="off" /></label> </p> <p> <label for="user_pass">Password<br /> <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label> </p> <p class="forgetmenot"> <label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me</label></p> <p class="submit"> <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In" /> <input type="hidden" name="redirect_to" value="'.$currentPage.'" /> <input type="hidden" name="testcookie" value="1" /> </p> </form>'; return;
- This reply was modified 5 years, 8 months ago by dgcov. Reason: Define $currentPage redirect value without $_SERVER['HTTP_HOST']
Thanks.
Disabling the log has sorted it.
Cheers!
That sorted it, thanks.
~ Dave
Forum: Networking WordPress
In reply to: Unable to log in after IP address changeSorry, I found this on Stack exchange:
You need to edit the wp-options table in the WP database and change the 10.0.0.242 references to 192.168.0.242
Forum: Fixing WordPress
In reply to: Efficient data storage.Thank you.
I was considering a custom post type for the Project with an array of drawingfile names in an associated post_meta array, but the number of drawing files could go up to thousands.
I’m still planning on using a post_meta array for team members with varying read/write access, etc, but that should be a smaller list.
Forum: Hacks
In reply to: Storing arrays in post_metaThanks!
That was exactly what I wanted to know.
Forum: Hacks
In reply to: $_POST variable empty when using add_action save_postThank you again.
I had failed to allocate a ‘name’ to my text inputs and only had an ‘id’ element, so the $_POST[‘stock’], etc wasn’t being populated.
After I had used $data = print_r( $_POST, true );, I saw that the fields weren’t present and was able to identify the cause.
Thanks once again!
Forum: Hacks
In reply to: $_POST variable empty when using add_action save_postThanks.
That is very helpful.
Forum: Hacks
In reply to: $_POST variable empty when using add_action save_postThanks for the reply.
I’m using Blackbox to view the globals.
$_GET = array ( 'post' => '217', 'action' => 'edit', 'message' => '6', ); $_POST = array ( );
I think you are correct that something is emptying the $_POST global and I’ll look into the other plugins.
I’m currently running this locally on a test machine, I’ll sort out the sanitation later.