philip2041
Forum Replies Created
-
Hi @kokkieh ,
No, I don’t see anything broken either on the front end or dashboard.
So I see, I don’t need to worry about that notification, it’s not really an error.
Thanks for your help!
Hi @lizkarkoski,
Sorry I forgot to provide the URL: https://thetowerinfo.com
And below is the full details about the error from that automated Email.
Error Details
==============
An error of type E_ERROR was caused in line 270 of the file /home/cpanel-username/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php. Error message: Uncaught Error: Class ‘Automattic\Jetpack\Roles’ not found in /home/cpanel-username/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php:270
Stack trace:
#0 /home/cpanel-username/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php(239): Automattic\Jetpack\Sync\Listener->get_actor(‘jetpack_plugins…’, Array)
#1 /home/cpanel-username/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php(114): Automattic\Jetpack\Sync\Listener->enqueue_action(‘jetpack_plugins…’, Array, Object(Automattic\Jetpack\Sync\Queue))
#2 /home/cpanel-username/public_html/wp-includes/class-wp-hook.php(288): Automattic\Jetpack\Sync\Listener->action_handler(Array, Array)
#3 /home/cpanel-username/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
#4 /home/cpanel-username/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /home/cpanel-username/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/modules/Plugins.php(168):==============
Please help me check the problem, thanks!
Hi @sterndata,
Sorry for the late response, I was away.
Now it works after the priority is changed to 99, so it’s all because the plugin uses a really high priority. Thank you so much for your help!
I’m a beginner on coding, without your help I think I can’t find the plugin’s code you found for me, it has so much lines and is too complicated to me! You helped me a lot, thanks again!
Hi @sterndata,
Thanks for your answer, but your method doesn’t work, I tried adding the numbers like 20, 30, 40 to add_action(), all don’t work.
OK, I will ask AddtoAny’s developers for help, though it may take quite a long time to get a reply in plugins’ support forums.
Hi @gejay,
After I used your method, I waited for about two weeks, only found Google still displays publish date, not update date.
Then I edited template-tags.php to put the code of Update Date in front of Publish Date, as in that way the Update Date will be the first date seen by search engines, so I thought that will work, but the date shown on Google was still publish date after I waited for another week.
Then I checked the source code of my web page, and found that a plugin called Yoast SEO adds publish date to the head section in a meta tag, I think it might be that plugin affecting the decision of search engine about the date of post, so I disabled the plugin, and waited for another few days. But still nothing changes on the date shown on search engine.
At last, I removed the code of publish date in template tags.php, and this time, search engine stopped showing Publish Date of my post, and after a few days it started showing Update Date for my posts.
So my problem is solved, thanks for all your helps!
Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @sterndata,
Thanks, I will try to contact my host again.
Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @kartiks16,
The phpinfo.php page tells me that my site is running on PHP 5.4, same as what is told by the notice on WordPress Update panel.
Is this implying that something is wrong on my host?
Thanks!Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @sterndata,
I’ve contacted them once, they told me the host environment is PHP 7.3. Now I think I should contact them again.
Thanks for your help.Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @sterndata ,
1. Yeah it maybe not the case, however, I found that the .htaccess file can be used to change PHP version, here is an article about changing PHP version in .htaccess file:
https://www.siteground.com/kb/how_to_have_different_php_versions/It says the PHP version can be changed to PHP 7 by adding this line:
AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
But my MultiPHP Manager already indicates I’m running PHP 7, I don’t know whether adding that code will work.
2. No I don’t see php.ini file in my site root, what does the file do?
Thanks!
- This reply was modified 5 years, 4 months ago by philip2041.
Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @sterndata ,
Thanks for your answer!
I checked my .htaccess file, but can’t find things about PHP version there, how is PHP version specified? Can you give me an example? so I can look for the related code in there.
Thanks!Forum: Fixing WordPress
In reply to: Can’t Update To WordPress 5.2 because of PHP versionHi @kartiks16 ,
Thanks for your answer, I will try the methods you suggest.
Hi @gejay ,
I didn’t mean misleading.
As mentioned in the content in the link you posted above, search engine can see the hidden text, so the published date that is hidden with CSS still can be seen by Google, hence its search result page may still display the initial published date for my posts.
However, I will wait a few days and see the result and let you know if it works.
Thanks!
Hi @gejay ,
I found something useful about how search engine determines date of post:
https://webmasters.stackexchange.com/questions/18395/how-does-google-recognize-publish-date-of-a-post
https://webmasters.googleblog.com/2019/03/help-google-search-know-best-date-for.htmlAccording to Google webmaster blog, Google determines the date of a post using a variety of factors.
It seems that the html tags is not a important sign it will use to determine a post’s date, because I found that the updated date of posts on Lifewire.com is just written in regular <div> tag, the updated date can still be shown on Google search result pages.
In my opinion, Google may looks for the text of date that is shown next to the post title and uses it as the date shown on search result page.
I don’t know whether your CSS method will work to make the updated date show on search result page, I will try it first and wait to see the result.
If it doesn’t work, I think the published date should be removed in the code, or place it behind the updated date.
Thanks!
Hi @gejay ,
The above measure perfectly works! Now my posts can show Updated Date with the same format and html tags as that of Published Date.
Thank you so much!
There’s still one more thing I want to ask, I found that the Published Date is not removed but is just ‘hided’ with CSS, will Google still using Published Date as the date of my posts shown on their search result pages?
Thanks!
- This reply was modified 5 years, 5 months ago by philip2041.
Hi @gejay ,
The code you gave me does can make the post show “Updated On mm/dd/yyyy” under the title.
However, as I checked with browser’s inspect element tool, the original “Published on mm/dd/yyyy” has <time> tag wrapped on the date, but now the “Updated On mm/dd/yyyy” is just plain text.
So will the date still be shown on search engine result page? My main purpose is to make the updated date to show on the search engine result page, but I don’t know how search engines determine and display the date of a post, is that <time> tag important?
Thanks!