PayDelete
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need Re-Publish Plugin That Changes Permalinks@bcworkz thanks for the reply. I know there are ways to change the post_name using update post, but I am hoping to find that in a plugin without having to build a new plugin myself.
Forum: Fixing WordPress
In reply to: WordPress Export Tool Not WorkingI don’t know if this is a bug in WordPress itself or not, but whenever I do a really big import I cannot access wp-admin section anymore. It says offline as if only those pages are not allowed to connect.
Forum: Fixing WordPress
In reply to: WordPress Export Tool Not WorkingThank god I didn’t remove the robots.txt block on that site because some dumbass as WordPress decided not to include images and other attachment with category level exports. As a result I downloaded a plugin to add that functionality, but so far it makes me have to breakup the exports into bi-monthly at all levels so far. Then I can’t bulk delete the old import because when I tried using a plugin now I get a message saying my serve is offline whenever I try to visit wp-admin directory, but the rest of the site does not show that error at all.
- This reply was modified 2 years, 10 months ago by PayDelete.
Forum: Fixing WordPress
In reply to: WordPress Export Tool Not WorkingI got the export working by setting the memory limit to -1 but now the Import tool doesn’t work. It freezes with a blank screen at wp-admin/admin.php?import=wordpress&step=2
Forum: Fixing WordPress
In reply to: WordPress Export Tool Not WorkingI noticed an error in cPanel which with redactions reads:
[Sat Jan 29 23:05:03.363696 2022] [cgi:error] [pid 2263] [client *****:33570] AH01215: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 57096687 bytes) in /home/****/public_html/f****.com/wp-includes/functions.php on line 5212: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://*****.com/wp-admin/export.php
Forum: Fixing WordPress
In reply to: WordPress Export Tool Not WorkingI was able to export some stuff by limiting the export to just a few months at a time, but eventually I got to the point where some months are too big to be exported.
Forum: Developing with WordPress
In reply to: How Do I Include wp-load.php in a Plugin?Including admin-post.php seems to work. I’ll know for sure after I submit it to WordPress.
It seems to work perfectly because admin-post.php includes wp-load.php
Forum: Developing with WordPress
In reply to: How Do I Include wp-load.php in a Plugin?I usually use APIs when I need to fetch information in response to use inputs using javascript. I don’t typically use them when writing server side code like PHP.
Forum: Developing with WordPress
In reply to: How Do I Include wp-load.php in a Plugin?I certainly have no interest in using AJAX for a plugin that simply creates randomized RSS feeds nor could I use AJAX in an XML file.
Forum: Developing with WordPress
In reply to: How Do I Include wp-load.php in a Plugin?So, you’re saying its best to keep using wp-load.php and require people that want to use my plugin to download it directly from my website instead of the plugin directory due to WordPress refusing to allow plugins that work just fine just for including that file?
I mean, it doesn’t look like there is any way to include that file using add_action(). My next question is if you can call the functions in that file using a hook?
Forum: Developing with WordPress
In reply to: How Do I Include wp-load.php in a Plugin?Thanks for the reply, but I am not looking for links to vague information about plugins and hooks in general.
I am looking for a specific way to achieve the same functionality as including wp-load.php in a way that WordPress will allow in a plugin.
Right now I’ve tried including items from the wp-includes folder but that has led to a new error following the inclusion of cache.php which says:
Warning: Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in C:\Bitnami\wordpress-5.7-2\apps\wordpress\htdocs\wp-includes\cache.php on line 12 Warning: Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in C:\Bitnami\wordpress-5.7-2\apps\wordpress\htdocs\wp-includes\cache.php on line 12 Warning: require_once(ABSPATHWPINC/class-wp-object-cache.php): failed to open stream: No such file or directory in C:\Bitnami\wordpress-5.7-2\apps\wordpress\htdocs\wp-includes\cache.php on line 12 Fatal error: require_once(): Failed opening required 'ABSPATHWPINC/class-wp-object-cache.php' (include_path='.;C:\php\pear') in C:\Bitnami\wordpress-5.7-2\apps\wordpress\htdocs\wp-includes\cache.php on line 12
Forum: Plugins
In reply to: [AMP] AMP Plugin Breaks Button Plugin@milindmore22 I just created my first repo and uploaded the plugin code. From what I’ve read I need to allow you access to do that since its a private repo.
Forum: Fixing WordPress
In reply to: Administrators Created by Public Despite Subscriber Only SettingHow would they get those? I changed the DB credentials after the sites were hacked last month. I also had to delete malicious code including a bad plugin and that seemed to fix the problem.
Forum: Plugins
In reply to: [AMP] AMP Plugin Breaks Button PluginEven when I replace the strong element with div tags they still don’t show up when I click the button. It seems like only the AMP formatted stuff shows up.
Forum: Plugins
In reply to: [AMP] AMP Plugin Breaks Button Plugin@milindmore22 You code has the same problem that the default AMP code has. When the button is clicked and an error has to be echo’d out it considers a successful click of the button a success regardless of the result. If I click the button and the post is not deleted then I still get an AMP success message. This is obviously because at that point the click is a success regardless of how it is processed. How do I echo an error in AMP format?
See the parts of my code that create a strong element with a message based on the http status code of the source link after the button is pushed? I need the AMP message to be the same. I’m thinking maybe of just using a div tag there and forego using the so called mustache at all.
- This reply was modified 3 years, 1 month ago by PayDelete.