No shortcodes working
-
Hi everyone,
My husband’s work website suddenly stopped properly displaying shortcodes. It now just shows the shortcode, but won’t show what the shortcode is supposed to do.
I deactivated all plugins and it didn’t fix it.
I switched back to 2010 with all plugins deactivated and it didn’t fix it. I activated a few plugins that I know use shortcodes and it didn’t fix it.The site is https://www.godmanguild.org.
Could it be a server issue somehow? The shortcodes previously worked.
-
Have you tried resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
No, but only because they don’t have access by FTP or PhpMyAdmin. (don’t even get me started on their hosting company).
I will tell Bob and have him email her that link – maybe the host co. will do it.
Hi again – we reset the permalinks to default and it fixed the issue. Does that mean it’s somehow htaccess related?
We got FTP access finally. It looks like on 5/19 the server admin created a NEW htaccess file. That’s the day the shortcodes stopped working. Here’s what’s in it:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp/index.php [L] </IfModule> #DirectoryIndex index.php #Options +FollowSymLinks #Redirect permanent /index.php https://www.godmanguild.org/ Redirect permanent /ableged-i-38.html https://www.godmanguild.org/work-force-development/ableged/ Redirect permanent /about-i-6.html https://www.godmanguild.org/about-2/ Redirect permanent /adventure-academy-c-12.html?info_id=12 https://www.godmanguild.org/camp-mary-orton/adventure-academy/ Redirect permanent /adventure-elements-c-10.html?info_id=10 https://www.godmanguild.org/camp-mary-orton/adventure-elements/ Redirect permanent /board-directors-i-44.htm https://www.godmanguild.org/about-2/board-of-directors/ Redirect permanent /camp-mary-orton-advisory-board-i-45.html https://www.godmanguild.org/camp-mary-orton/camp-mary-orton-advisory-board/ Redirect permanent /camp-mary-orton-i-2.html https://www.godmanguild.org/camp-mary-orton/ Redirect permanent /camp-rentals-c-14.html?info_id=14 https://www.godmanguild.org/camp-mary-orton/camp-rentals/ Redirect permanent /camp-workshops-c-11.html?info_id=11 https://www.godmanguild.org/camp-mary-orton/camp-workshops/ Redirect permanent /career-opportunites-i-34.html https://www.godmanguild.org/career-opportunities/ Redirect permanent /career-services-programs-i-35.html https://www.godmanguild.org/work-force-development/career-services-programs/ Redirect permanent /cmo_rental.php https://www.godmanguild.org/camp-mary-orton/questions/ Redirect permanent /contact_us.php https://www.godmanguild.org/contact-us/ Redirect permanent /corporate-offerings-i-8.html https://www.godmanguild.org/camp-mary-orton/corporate-offerings/ Redirect permanent /employer-resources-i-23.html https://www.godmanguild.org/work-force-development/employer-resources/ Redirect permanent /historical-i-25.html https://www.godmanguild.org/about-2/historical/ Redirect permanent /invest-community-i-5.html https://www.godmanguild.org/donate/ Redirect permanent /leadership-challenge-center-i-33.html https://www.godmanguild.org/camp-mary-orton/leadership-and-challenge-center/ Redirect permanent /learning-center-i-24.html https://www.godmanguild.org/work-force-development/learning-center/ Redirect permanent /our-staff-i-27.html https://www.godmanguild.org/about-2/our-staff/ Redirect permanent /poe-i-46.html https://www.godmanguild.org/wake-up-to-the-possibilities/ Redirect permanent /questions-c-13.html?info_id=13 https://www.godmanguild.org/camp-mary-orton/questions/ Redirect permanent /summer-youth-empowerment-i-30.html https://www.godmanguild.org/youth-family-services/summer-youth-empowerment/ Redirect permanent /teen-i-17.html https://www.godmanguild.org/youth-family-services/t-e-e-n/ Redirect permanent /volunteer-i-7.html https://www.godmanguild.org/about-2/volunteer/ Redirect permanent /wish-list-i-26.html https://www.godmanguild.org/about-2/wish-list/ Redirect permanent /work-force-development-i-4.html https://www.godmanguild.org/work-force-development/ Redirect permanent /youth-family-education-i-18.html https://www.godmanguild.org/youth-family-services/youth-family-education/ Redirect permanent /youth-family-services-i-3.html https://www.godmanguild.org/youth-family-services/ Redirect permanent /youth-social-services-c-9.html?info_id=9 https://www.godmanguild.org/camp-mary-orton/youth-social-services/ RewriteCond %{HTTP_HOST} ^campmaryorton.org$ [OR] RewriteCond %{HTTP_HOST} ^www.campmaryorton.org$ RewriteRule ^/?$ "http\:\/\/www\.godmanguild\.org\/camp\-mary\-orton\/" [R=301,L]
She left a copy of the OLD htaccess file (appropriately renamed oldhtaccess!). Here’s what in it:
#SEF Link Transformer #Version: Lite 0.8.0 Alpha <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule> #DirectoryIndex index.html DirectoryIndex index.php default.php index-2.php Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^campmaryorton.org$ [OR] RewriteCond %{HTTP_HOST} ^www.campmaryorton.org$ RewriteRule ^.*$ "http\:\/\/www\.godmanguild\.org\/camp\-c\-2\.html" [R=301,L] RewriteRule ^(.*)-c-([0-9]+).html$ camp.php?info_id=$2&%{QUERY_STRING} Redirect permanent /information.php?info_id=2 https://www.godmanguild.org/camp.php?info_id=2 #Redirect permanent /information.php?info_id=8 https://www.godmanguild.org/ground-level-high-ropes-course-c-8.html #Redirect permanent /information.php?info_id=10 https://www.godmanguild.org/adventure-elements-c-10.html #Redirect permanent /information.php?info_id=14 https://www.godmanguild.org/camp-rentals-c-14.html #Redirect permanent /information.php?info_id=15 https://www.godmanguild.org/lodge-c-15.html #Redirect permanent /information.php?info_id=11 https://www.godmanguild.org/camp-workshops-c-11.html #Redirect permanent /information.php?info_id=12 https://www.godmanguild.org/adventure-academy-c-12.html #Redirect permanent /information.php?info_id=13 https://www.godmanguild.org/questions-c-13.html #Redirect permanent /information.php?info_id=9 https://www.godmanguild.org/youth-social-services-c-9.html RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} Redirect permanent /default.htm https://www.godmanguild.org/index.php Redirect permanent /index.html https://www.godmanguild.org/index.php Redirect permanent /support.htm https://www.godmanguild.org/invest-community-i-5.html Redirect permanent /contactingus.htm https://www.godmanguild.org/contact_us.php Redirect permanent /camp.htm https://www.godmanguild.org/camp-c-2.html Redirect permanent /camp_ropes.htm https://www.godmanguild.org/ground-level-high-ropes-course-c-8.html Redirect permanent /camp_adventure.htm https://www.godmanguild.org/adventure-elements-c-10.html Redirect permanent /camp_rentals.htm https://www.godmanguild.org/camp-rentals-c-14.html Redirect permanent /camp_workshops.htm https://www.godmanguild.org/camp-workshops-c-11.html Redirect permanent /adventure.htm https://www.godmanguild.org/adventure-academy-c-12.html Redirect permanent /questions.htm https://www.godmanguild.org/questions-c-13.html Redirect permanent /gg_lodge.htm https://www.godmanguild.org/lodge-c-15.html Redirect permanent /family.htm https://www.godmanguild.org/youth-social-services-c-9.html Redirect permanent /camp-i-2.html https://www.godmanguild.org/camp-c-2.html Redirect permanent /ground-level-high-ropes-course-i-8.html https://www.godmanguild.org/ground-level-high-ropes-course-c-8.html Redirect permanent /adventure-elements-i-10.html https://www.godmanguild.org/adventure-elements-c-10.html Redirect permanent /camp-rentals-i-14.html https://www.godmanguild.org/camp-rentals-c-14.html Redirect permanent /lodge-i-15.html https://www.godmanguild.org/lodge-c-15.html Redirect permanent /camp-workshops-i-11.html https://www.godmanguild.org/camp-workshops-c-11.html Redirect permanent /adventure-academy-i-12.html https://www.godmanguild.org/adventure-academy-c-12.html Redirect permanent /questions-i-13.html https://www.godmanguild.org/questions-c-13.html Redirect permanent /youth-social-services-i-9.html https://www.godmanguild.org/youth-social-services-c-9.html Redirect permanent /youth.htm https://www.godmanguild.org/youth-family-services-i-3.html Redirect permanent /youth_lep.htm https://www.godmanguild.org/youth-family-education-i-18.html Redirect permanent /youth_epic.htm https://www.godmanguild.org/epic-program-i-16.html Redirect permanent /youth_leadership.htm https://www.godmanguild.org/teen-i-17.html Redirect permanent /forms/summeryouth.html https://www.godmanguild.org/summer-youth-empowerment-i-30.html Redirect permanent /employment.htm https://www.godmanguild.org/work-force-development-i-4.html Redirect permanent /employment_success.htm https://www.godmanguild.org/employment-services-i-21.html Redirect permanent /employment_able.htm https://www.godmanguild.org/ableged-i-22.html Redirect permanent /learning_center.htm https://www.godmanguild.org/learning-center-i-24.html Redirect permanent /employment_employers.htm https://www.godmanguild.org/resources-employers-service-professionals-i-23.html Redirect permanent /about.htm https://www.godmanguild.org/about-i-6.html Redirect permanent /historical.htm https://www.godmanguild.org/about-i-25.html Redirect permanent /wishlist.htm https://www.godmanguild.org/wish-list-i-26.html Redirect permanent /ourstaff.htm https://www.godmanguild.org/our-staff-i-27.html Redirect permanent /volunteer.htm https://www.godmanguild.org/volunteer-i-7.html Redirect permanent /forms/cmo.html https://www.godmanguild.org/cmo_rental.php Redirect permanent /forms/volunteer.html https://www.godmanguild.org/volunteer-i-7.html Redirect permanent /Project_Build_Questionnaire.asp https://www.godmanguild.org/work-force-development-i-4.html Redirect permanent /projectbuild.htm https://www.godmanguild.org/work-force-development-i-4.html Redirect permanent /employment_knocks.htm https://www.godmanguild.org/work-force-development-i-4.html
Is the answer in there somewhere?
Probably the switch from php4 to php5.
It’s PHP 5.2.14.
What can I do? Or ask her to do?
Firstly, always put the WordPress calls at the bottom (that way you only parse them ONCE, should keep load time down a little).
Second, if you did upgrade from php4 to php5, you may need to make an explicit declare at the top of the file.
Add ONE the following lines at the top of your .htaccess file. If unsure which to use, check with your hosting provider on which version works best for your configuration.
AddType x-mapp-php5 .php AddHandler application/x-httpd-php5 .php AddHandler cgi-php5 .php
I tried all three of those just now – they caused a white screen.
What happens if you try turning the permalinks back on with the WP calls at the bottom?
They were already on.
I tried again flipping them back to default and then back to month/day – the shortcodes didn’t reappear.
Did you upgrade PHP? I know Andrea mentioned it and I’m assuming she knows something I don’t (or that this:
<IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule>
is telling us you need to call php4…)
- The topic ‘No shortcodes working’ is closed to new replies.