ngreeves
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Broken internal links, used to work fineI managed to fix the problem using this command in WP-CLI.
wp search-replace ‘href=”(?!\/|http|#|mailto)([^”]+)’ ‘href=”https://chemtube3d.com/\1’ –regex –dry-run
The regex matches any
href="that isn’t already prefixed with/,http,#, ormailto, and prepends https://chemtube3d.com/. Remove--dry-runonce you’ve confirmed the preview looks right.I’d love to know what caused this problem in the first place.
Forum: Fixing WordPress
In reply to: Broken internal links, used to work fineThanks again. Adding a leading / does indeed solve the problem but I don’t know how I’d change all the internal links.
Permalink structure is set to Post name https://www.chemtube3d.com/sample-post/
I note that Custom Structure, which is not selected, is set to https://www.chemtube3d.com/%postname%/
They are all pages.
Forum: Fixing WordPress
In reply to: Broken internal links, used to work fineThanks for the suggestions. I resaved Permalinks – no change. I deactivated W3 Total Cache – no change.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Ignore HTML tags when indexing?Many thanks, that is working as intended now.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Ignore HTML tags when indexing?Thank you, that sounds ideal. Just to be clear are you suggesting I add this to functions.php ?
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] SimpleHtmlDom.php error line 176Thanks for the reply.
How can I tell which page has caused the problem? I have >2400.Best regards
NickThank you. Your guide to disabling the plugin and then resetting it was very useful. If formalised what I had already been trying and gave me confidence that my approach was sensible. I now have access to the WordPress GUI and can change the settings of AIOWPS.
I would like to keep the IP whitelist feature enabled but I would also like to use Cloadflare.
Can anyone confirm that this combination is known to work?
Thank you for alerting the developers.
Is there any easy way to disable the whitelist feature by removing or editing one of the files in the plugin directory? That would help as I have no access to the WordPress GUI.I run my own live server on macOS Mojave (Darwin Kernel Version 18.7.0) with Apache/2.4.34 (Unix) LibreSSL/2.5.5 PHP/7.3.8
Wordpress is up to date. I can’t check the version number easily because I can’t login to /wp-admin
Thanks for the suggestion. I did not know about this setting. Unfortunately, it did not help.
I have found a very rough workaround that involves removing the plugin in macOS Finder but that isn’t really a long term solution.
Forum: Fixing WordPress
In reply to: Background updates are not working as expected macOS hostI found a solution which worked for me. https://slickmedia.co.uk/blog/glenns-blog/fix-mamp-pro-issues-updating-uploading-wordpress-localhost/
I added _www as a read/write owner on wp-content.
1.As before we follow Step 1 above to remove the need for FTP when updating plugins, themes etc
2. Select the folder that you need to allow www access to. For example for uploading (as per this requiremrnt) select the ‘wp-content’ folder
3. On you mac hit ‘cmd + i’ (Command I) which brings up the file info and ‘Sharing & Permissions’ and here you will see the users that can access the folder. Given that you have a permissions issue with uploads what you probably won’t see is the Owner ‘_www’ as used by MAMP
4. Unlock the padlock (bottom right) and authenticate if necessary and click the plus ‘+” button in the bottom left corner whilst also holding down Option (‘alt’). This will show you the system users and groups (rather than just the standard user with just the + button click)
5. Scroll down towards the bottom and select ‘World Wide Web Server’. There are 2 and the are the Owner and Group for www. Select them both and click ‘Select’. They will now appear in your folder permissions.
6. Set the Owner _www (one head) to ‘Read & Write’ and set the Group _www (2 heads) to ‘Read Only’ as per the below:You will now have sufficient Apache www user read/write access to upload to your WordPress site.
Forum: Fixing WordPress
In reply to: Background updates are not working as expected macOS hostHi,
Thanks for your reply. I know how to change file permissions and ownership but I don’t know which user should own these files and what the permissions should be.I only have my own username (the WordPress installation is in Sites), Staff as a group and Everyone to choose from.
I need to make these files “writable by WordPress” apparently.
Further suggestions would be welcome.
Nick
Forum: Plugins
In reply to: [Code Embed] No meta Custom Files box appearsThanks David,
I did search the forum but it did not find this previous post. I have just tried creating a Custom Field called CODE1 with ACF and can confirm this does not seem to work.It would be great if you were able to get them to co-exist. As I said, I’m a WP novice but my existing HTML site uses <script> commands like they are going out of fashion!
All the best
NickForum: Plugins
In reply to: [Code Embed] No meta Custom Files box appearsI don’t think so. I am using the Classic Editor plugin (1.3) which hides all functionality available in the new Block Editor (“Gutenberg”).