Regina Ortega
Active member
Thank you.
Could you check "Server Errors" in the admin control panel and see if you have an error logged there ?
View attachment 44479
Glad you fixed it .. There is an "xfa_robots" template that is used, most likely that one was empty before the cache rebuildingJust fixed with a full cache rebuild
Works well
Love the robots.php feature (I made my own rewrite rule, robots.txt will rewrite to robots.php now).
However, how would I edit the text outputted? Mainly, so I can add custom rules etc?
I checked the robots.php file, however I can't see anything that would actually output text (I am new to xenForo).
Ok, I found the template that controls it but I can't get it to place the line break (when I stick the HTML in it just prints it as text)
EDIT: Done it I edited the file that has the rendering function, and added a line that converts HTML br tags to plain text line breaks
I also found the admin options to add more entries
EDIT2: Even better, it now detects the User-agent lines and prefixes them with a new line, and removed the line from the top of the file. A perfect robots.txt with the only issues being the wildcard's in the disallow entries
Liam
It is actually specifically removing new lines, it was meant as a future since the new lines are not really needed.
If you don't want that to happen on library/XfAddOns/Sitemap/ViewPublic/Robots.php delete this line
$output = preg_replace("/[\n][\n]+/", "\n", trim($output));
The output would have several line breaks, and any that you specifically put in the template would work
Do you used any particular validator for that? I checked the grammar at http://www.robotstxt.org/norobots-rfc.txt and I don't see anything that would mark the lack of line breaks to be a problem.I only wanted line breaks before the user agent definitions as that's valid robots.text format - its classed as an error otherwise.
Undefined variable: sitemaps
- XenForo_Application::handlePhpError() in XfAddOns/Sitemap/Model/Sitemap.php at line 139
- XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps() in XfAddOns/Sitemap/CronEntry/RebuildSitemap.php at line 31
- XfAddOns_Sitemap_CronEntry_RebuildSitemap::run()
- call_user_func() in XenForo/Model/Cron.php at line 356
- XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 204
- XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /home/oakleyfo/public_html/admin.php at line 13
Since it is not ocurring for everyone seems to be for your specific PHP configurationWhen my sitemap tries to run, I get this error:
foreach ($classes as $klass)
{
foreach ($classes as $klass)
{
$sitemaps = null;
When they are created, they are chmod'ed 666 (but even 600 would work), I do not recommend 777 as they do not need to be executableFixed it! Thanks! Though I had to chmod777 the sitemap.gz files inside the sitemap folder before it worked. Is this normal?
If you like this add-on, please post a review. It takes 1 minute and I enjoy the feedback!
A small maintenance release, you could skip this one
- Fixed a bug when the sitemap variable does not get initialized, and later the code references it. (For @OakleyForum)
- Added whitespace before the User-Agent to keep some validators a little happier. Google still validated fine before (For @Liam)
- Added an "additional robots.txt" section in the AdminCP options, so you can extend robots.txt with any other rules
The sitemap is really just for the robots I don't see anyone voluntarily reading a list of 10,000 linksRigel,
How about adding sitemap.html for forum display?
but the html should be created in the forum directory,
all other files in the sitemap directory....i guess it could
be in the sitemap directory as index.html rather then
having 0 bytes, it could be for public view of what the
sitemap looks like as it is growing....
The sitemap is really just for the robots I don't see anyone voluntarily reading a list of 10,000 links
sounds like a timeout. How big is your forum?Getting a 500 Error on trying to Run Rebuild after first install .. doesn't leave the Cron Entries screen. Any ideas? It did generate a few files in my sitemap folder however
We use essential cookies to make this site work, and optional cookies to enhance your experience.