Steven Lin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP_kses_allowed_html called incorrectlySo, just curious, have you tried the above method or if you’ve used other methods that solved the problem?
Thanks.
Forum: Fixing WordPress
In reply to: TypeError thrownYou’re welcome.
One last thing.
I wonder if you can help me mark this topic as “Resolved”? This is a good practice per forum guidelines.
You can perform this using the “Status” drop-down menu located on the right sidebar of this page.
In addition, this can help out other users.
Thanks.
Forum: Fixing WordPress
In reply to: TypeError thrownIs the web server running on PHP 7.3+?
GWT (“government web template for wordpress” from “iGov Philippines Project”) is only tested on PHP 7.3+ and above, and not PHP 8.
If you do not know how to deal with the above, you’ll need to contact the admin and let them know that you’ve encountered such error. The solution is likely to have the software run on PHP 7.3+ and not PHP 8.
Forum: Fixing WordPress
In reply to: WP_kses_allowed_html called incorrectlyAssuming you’ve cloned the instance correctly, I would guess this is due to a PHP version compatibility issue with the code.
On your new Windows server, are you able to downgrade to PHP 7.3 and give it a try?
Forum: Fixing WordPress
In reply to: Require an advanced citing or referencing methodHello,
While I’m no expert when it comes to bibliography plug-ins, apart from the two plug-ins you listed above, I wonder if you’ve tried other related plug-ins?
For example:
Academic Blogger’s Toolkit
https://www.ads-software.com/plugins/academic-bloggers-toolkit/WP-BibTeX
https://www.ads-software.com/plugins/wp-bibtex/Footnotes Made Easy
https://www.ads-software.com/plugins/footnotes-made-easy/Zotero Notes
https://www.ads-software.com/plugins/zotero-notes/Forum: Fixing WordPress
In reply to: Page Content No Showing – WordPress 5.91.)
I updated both the Home and Page Templates to add the custom header and footer in.
I created a custom page with content (that I think is supposed to show up between the header and footer)
You seem to have a misconception.
I.) The Home page can be based on the Home Template only (i.e. anything that doesn’t show up in your Home Template, static or dynamic content, won’t show up on your Home page). You edit the Home page by going to WP-Admin -> Apperance -> Editor and make sure the top bar say “Home”.
II.) A Page (regular) can be based on any Page template you choose. You edit a Page by going to WP-Admin -> Page. Then to choose a Page template to base your page on, choose from the right side bar.
The header and footer does not come from the Home Template, they’re typically created with Template Parts and included on Home Template and a default Page Template, which themes typically include by default.
So, to add content between the header and footer of the Home page, you’ll need to edit the Home Template directly ( point I.) above ) and add content to the content portion of the Home Template, not by editing another custom page.
2.)
As your site currently displays, you seemed to have solved this problem.Forum: Fixing WordPress
In reply to: Page Content No Showing – WordPress 5.9Were you able to solve your issues?
If so, it’s a good practice to mark this topic as “Resolved” per forum guidelines.
You can do this using the “Status” drop-down menu located on the right sidebar of this page.
In addition, this can help out other users.
Thanks.
Forum: Fixing WordPress
In reply to: create Page to display posts only from one CategoryWere you able to solve your issues?
If so, it’s a good practice to mark this topic as “Resolved” per forum guidelines.
You can do this using the “Status” drop-down menu located on the right sidebar of this page.
In addition, this can help out other users.
Thanks.
Forum: Fixing WordPress
In reply to: Multiple Errors, Need Help1.)
I’m a bit unsure about adding lines to the wp-config.php file, as I’m not a developer, my knowledge is basic to getting better.
If that’s the case, then it’s probably hard to move forward from this point on in this thread.
2.)
Backend fatal error: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 12288 bytes) in /home4/…./public_html/wp-includes/
1073741824 bytes is 1 GiB, which is very large for a site that is on shared hosting.
In other words, you either reduce the memory footprint (fixing site issues or reduce the number of plug-ins) or the site shouldn’t be on shared hosting.
Most WP sites have a memory allocation of 256 MB.
For sites on shared hosting, you would typically only have between 0 and 5 plugins.
For sites on cloud hosting/VPS hosting/dedicated server, you can run anywhere from 5 and 20 plugins without much issues.
Your best bet going forward is probably to recruit outside help (e.g. freelancers) to take a deeper look at your system (i.e. there could be more than one issue).
After working with outside help, if upgrading hosting is determined to be needed (and since you’re already using the Smush plug-in), maybe you want to take a look at WPMU DEV. Their lowest tier has 1 GB dedicated memory and you instantly get to use 7 of their Pro plugins for free, including Smush Pro.
https://wpmudev.com/hosting/so I have tried duplicating DB and contents and it worked well. I will go ahead with this way.
Good to hear.
I have these 2 sites. example.com/mySite1 example.com/mySite2 And I want to show example.com/mySite1 as mydomain.net/mySite1 too. How about in this case? I could not find any solutions.
There is a standard solution to this. I’ll describe here in case other users who may be reading this thread.
This method is the primary way to solve your problem; it’s simpler and less problematic than duplicating DB and contents. You don’t need to duplicate DB and contents just to solve this.
You basically redirect the DNS records of
mydomain.net
to your web server and setmydomain.net
as your WordPress site URLs.1.) With your domain registrar, set the DNS
A
record ofmydomain.net
to your web server. Then, configure your web server listen formydomain.net
(you can do this with software such as cPanel).2.) Set
mydomain.net
as your WordPress site URLs:edit
WP_HOME
andWP_SITEURL
according to this guide:
https://www.ads-software.com/support/article/changing-the-site-url/#edit-wp-config-phpForum: Fixing WordPress
In reply to: Multiple Errors, Need Help1.)
I’m on a shared hosting plan, max database 5GB
I wonder if you can provide the name of the web hosting company so I can take a detailed look at the specs of the hosting plan. Also, I can compare it with other web hosting company/plans that I could be recommending.2.)
Your system has many plug-ins and its running into a memory limitation; shared hosting doesn’t provide much memory to begin with.The PHP 8192M (8 GiB) memory limit is shared with other customers’ sites on the same server. Then, there seems to be another hard limit of 1 GiB placed on each site (to make sure one site does not use up all the resources on the shared server).
In your
wp-config.php
file, add in these two lines and see what happens:define( ‘WP_MEMORY_LIMIT’, ‘5120M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘5120M’ );I.) Are the errors less or more?
II.) Do you still see “PHP Fatal error: Allowed memory size of XXX bytes exhausted” What’s the full message?Forum: Fixing WordPress
In reply to: Multiple Errors, Need Help1.)
What web host do you have? on what hosting plan?2.)
In yourwp-config.php
file under the WordPress folder of your site, do you have these two lines?define( 'WP_MEMORY_LIMIT', 'XXX' ); define( 'WP_MAX_MEMORY_LIMIT', 'XXX' );
If so, what are the values?
Forum: Fixing WordPress
In reply to: create Page to display posts only from one Category1.)
There is another (classic) way of creating a Page displaying all posts under a category: by using Appearance -> Menu2.)
The posts correctly show up in the Gutenberg editor preview but after I update the page and view the site, there are no posts displayed, only the header and footer.
If switching themes is a possibility, give it a try. See if the page displays correctly under a different theme.
Forum: Fixing WordPress
In reply to: Page Content No Showing – WordPress 5.9Have you edited the right template?
At top center of the full site editor, there is a drop down menu that allows you to choose between editing different template pages.
https://i.snipboard.io/RA2qXw.jpg
https://i.snipboard.io/I5C1yU.jpgmulti site sub directories
You can do this with WordPress multisite network.
https://www.ads-software.com/support/article/create-a-network/
https://www.ads-software.com/support/article/before-you-create-a-network/#types-of-multisite-networkThe sites in a network have different URLs. You can choose one of two ways for the URL to specify the site:
Each site has a different subdomain. For example:
site1.example.com
,site2.example.com
.
Each site has a different path. For example:example.com/site1
,example.com/site2