tderry
Forum Replies Created
-
Thank you @hastibe and @martijnvaneeghem .
I was under the impression that I’m up to date as long as the plugin doesn’t say an update is available. I assume the way to update a plugin without an “Update” link/process is the same as a manual install of a new plugin.
Thanks for your help.
Forum: Fixing WordPress
In reply to: Post List page includes all content in Title ColumnI have Health Check installed. Interestingly, when I enter troubleshooting mode the problem disappears, but when I enable all of the plugins while in troubleshooting mode, the problem never comes back. When I turn troubleshooting mode off, the problem is still there.
There were two files (sidebar-main.php and sidebar.php), both had the following at the end:
</div><!– #tertiary –>
<?php endif; ?>
I deleted “?>” from each.
Thank you so much for your assistance Saša! You are AMAZING!!!
Saša! Please check the sitemap on your end. I changed two PHP files and now I’m getting something different.
Please let me know if that is what I am supposed to see now.
Please confirm: The last line of many of the PHP files in ../themes/i-excel/ is:
“<?php get_footer(); ?>”
Should I remove the “?>” from these files?
Confirmed: I am using https://www.xxxxxxx.com/whitespace-test.php?allowed-plugins=wordpress-seo?
After editing the functions.php I get the following result:
Output buffers are started. Please deactivate plugins which started these output buffers.
Result of error handler:
Result of hedaers_sent: file=xxxxxxxxxxxx.com/whitespace-test.php line=101When I attempt to pull up sitemap_index.xml the result is:
This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.- This reply was modified 6 years, 5 months ago by tderry.
You are so kind…I can’t thank you enough.
Yes. This is a custom theme developed on i-excel. The developer is no longer available to make corrections. I am trying to increase my knowledge so I can take care of these things.
What other information do you need?
And I’m sorry, because I don’t know what any of that means.
How do I take that output and determine which plugin produced it?
We got a different output this time:
Output buffers are started. Please deactivate plugins which started these output buffers.
array ( ‘name’ => ‘default output handler’, ‘type’ => 0, ‘flags’ => 112, ‘level’ => 0, ‘chunk_size’ => 4096, ‘buffer_size’ => 8192, ‘buffer_used’ => 1, )Result of error handler:
Result of hedaers_sent: file=xxxxxxxxxxx.com/whitespace-test.php line=97One more observation:
I noticed the echo in your whitespace-test is longer than the echo I’m receiving. I am only getting “Output buffers are started.” The remainder of that line is not echoing.
Saša I truly appretiate your help!
These are the steps I’m going through. Please let me know what I’m doing wrong.
1. On your linked page I clicked “Raw”
2. On the resulting page I copied all content and pasted in a new php file, saving it as whitespace-test.php
3. I ftp’d the file to the root of my domain
4. typed “https://www.xxxxxxx.com/whitespace-test.php in the address barThe result was the same as before; a white page that says “Output buffers are started”
Based on your description I expected to see the name of a function which I could then try to find which plugin that function belonged too so I could deactivate that plugin.
Should I be doing something else after I type the whitespace-test url?
This may also be helpful.
One of the plugins, “Updraft Plus”, displays an error about the site causing extra white space. It says to deactivate all plugins except Updraft Plus to see if the error goes away. If not, then it is caused by something in WordPress. After deactivating all plugins, the error still did not go away.
Of course the “Health Check & Troubleshooting” plugin did the same thing but I wasn’t quite confident that typing the url to the sitemap in the address bar remained in the “controlled environment”.
Thank you. I did as you asked.
The File Integrity check gave me “All files passed”
Whitespace-test.php resulted in “Output buffers are started.”
Thank you for your time Saša!
Here are the steps taken from your last post:
1. Entered Troubleshoot mode using plugin “Health Check & Troubleshooting”. I entered “https://www.xxxxxxxxxxxxxxxxx.com/sitemap_index.xml” (replacing “xx…” with my domain name and still received the error. According to the Yoast document, that means none of the plugins or the theme is responsible for the error.2. I viewed all files in my root directory ending with *.php. Two files contained “?>” at the end (functions-mmm.php and wordfence-waf.php). I removed both occurrences and entered the sitemap url in a FireFox private window. I still received the error.
3. Even though item #1 above should have eliminated problems caused by the theme, I reviewed files in wp-content/themes/i-excel and removed the “?> from functions.php but still received the same error.
4. There are several PHP files in wp-content/themes/i-excel that have “<?php get_footer(); ?>” on the very last line but I assume since that line displays the footer that would be the last function of the page and should therefore end with “?>” (the footer.php itself does not end with “?>”)
Also to note, after doing the above changes I noticed the error log in i-excel has produced a few errors:
[12-Dec-2019 21:40:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in xxxxx.com/wp-content/themes/i-excel/functions.php:122
Where line 122 of functions.php is:
add_action( ‘after_setup_theme’, ‘iexcel_setup’ );
I assume this may have been the result of going into troubleshooting mode though.
There are a half dozen or so php files in i-excel that do not call the footer but do end with “?>” should I go ahead and remove those even though step #1 eliminated the theme being the issue?
Thank you again for being so helpful!
Thank you for your quick reply!
I deleted mydomain.com/sitemap_index.xml and /sitemap.xml
I do not have a “functions.php” file but I do have a “functions-mmm.php” file. Same thing?
Assuming that it is, and I follow your advice and delete the “?>” on the last line, how do I test to make sure my sitemap is current and is working with GSC?