Coder Social home page Coder Social logo

Sitemap plugin - Error about batflat HOT 11 CLOSED

sruupl avatar sruupl commented on August 16, 2024
Sitemap plugin - Error

from batflat.

Comments (11)

KonstantinFromRussia avatar KonstantinFromRussia commented on August 16, 2024 1

A simpler solution to this problem.
Add the following code to the .htaccess file:

<IfModule mod_php5.c>
 php_flag short_open_tag off
</IfModule>

from batflat.

klocus avatar klocus commented on August 16, 2024

Can you activate DEV_MODE in inc/core/defines.php?. Please check for some errors.

from batflat.

sim2github avatar sim2github commented on August 16, 2024

Returned error in red frame:

This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

from batflat.

KonstantinFromRussia avatar KonstantinFromRussia commented on August 16, 2024

My Lords !!!
I am taking a clean distribution system from a github.
I unpack it on the server. I start, I go to the admin area, turn on the sitemap plugin.
I do not make any additional entries.
Then I look at adress:
http://u14445mo3.ha002.t.justns.ru/sitemap.xml
You can try it yourself.
Login and password admin panel are standard, I haven't changed them
I can give a link to FTP

**// Developer mode
define('DEV_MODE', true);**

from batflat.

klocus avatar klocus commented on August 16, 2024

Can you provide me this file: /u14445mo3.ha002.t.justns.ru/public_html/tmp/sitemap.xml?

from batflat.

KonstantinFromRussia avatar KonstantinFromRussia commented on August 16, 2024

I can

<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<?php $counter = 0; foreach (cv($urls) as $key => $value): ?>
<url>
    <loc><?php echo cv($value)['url']; ?></loc>
    <?php if (!empty($value['lastmod'])): ?><lastmod><?php echo cv($value)['lastmod']; ?></lastmod><?php endif; ?>

</url>
<?php $counter++; endforeach; ?>
</urlset>

from batflat.

klocus avatar klocus commented on August 16, 2024

Set the config option short_open_tag in php.ini to 0 or Off and restart Apache.

from batflat.

KonstantinFromRussia avatar KonstantinFromRussia commented on August 16, 2024

Thanks!
It works.
Will this parameter affect other sites on my server?

from batflat.

sim2github avatar sim2github commented on August 16, 2024

Maybe this solution cover short tag problem #39 ?

from batflat.

sim2github avatar sim2github commented on August 16, 2024

RSS in blog module blog/feed/en_english has same problems.

from batflat.

vithultnair avatar vithultnair commented on August 16, 2024

A simpler solution to this problem.
Add the following code to the .htaccess file:

<IfModule mod_php5.c>
 php_flag short_open_tag off
</IfModule>

This didn't fix my issue! /sitemap.xml gives a 500 error.

blog/feed/en_english this also returns 500 error!

Is the issue fixed or not yet?

from batflat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.