Giter Site home page Giter Site logo

phpsitemapng's Introduction

phpsitemapng

phpSitemapNG php based google sitemaps generator

phpsitemapng's People

Contributors

scott-g avatar tc0nn avatar tobiaskluge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phpsitemapng's Issues

Not working for HTTPS

Hi

Sitemap works fine on HTTP buit not for HTTPS.

I have tried setting the website and scan URLs to HTTPS. The script seems to run OK but returns

Info: Crawling website now...
Found 0 files

I have also tried setting the the site to 301 redirect from HTTP to HTTPS but this has the same result.

I realise this repo is old but I cannot fine another script that meets my needs as well as this one.

Documentation missing / Error on startup

At least some documentation would be fine. Just installing on APACHE with PHP 7.2 gives me:

PHP Fatal error: Uncaught Error: [] operator not supported for strings in /inc/classes/LayoutEngine.class.php:59
Stack trace:
#0 /inc/functions/functions.inc.php(99): LayoutEngine->addContentFooter('<div align="cen...')
#1 /inc/startup.php(54): init()
#2 /index.php(10): require_once('/...')
#3 {main}
thrown in /inc/classes/LayoutEngine.class.php on line 59
[20-Mar-2018 22:13:36 Europe/Berlin] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /inc/classes/LayoutEngine.class.php:59
Stack trace:
#0 /inc/functions/functions.inc.php(99): LayoutEngine->addContentFooter('<div align="cen...')
#1 /inc/startup.php(54): init()
#2 /index.php(10): require_once('/...')
#3 {main}
thrown in /inc/classes/LayoutEngine.class.php on line 59

PHP Fatal error: Uncaught Error: [] operator

Hi.
I know there is no evolution of this very useful php script but I would like to know it is possible for a php programmer to solve.

The log in my hosting shows this:

[10-Jun-2021 17:01:31 Europe/Madrid] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php:59
Stack trace:
#0 /usr/home/abcd.com/web/phpsitemapng/inc/functions/functions.inc.php(99): LayoutEngine->addContentFooter('<div align="cen...')
#1 /usr/home/abcd.com/web/phpsitemapng/inc/startup.php(54): init()
#2 /usr/home/abcd.com/web/phpsitemapng/index.php(10): require_once('/usr/home/crovi...')
#3 {main}
  thrown in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 59
[10-Jun-2021 17:01:41 Europe/Madrid] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 156
[10-Jun-2021 17:01:41 Europe/Madrid] PHP Warning:  Invalid argument supplied for foreach() in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 157
[10-Jun-2021 17:02:11 Europe/Madrid] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /usr/home/abcd.com/web/phpsitemapng/inc/classes/Crawler.class.php:340
Stack trace:
#0 /usr/home/abcd.com/web/phpsitemapng/inc/classes/Crawler.class.php(167): Crawler->_handleHeaders(Array)
#1 /usr/home/abcd.com/web/phpsitemapng/inc/classes/Crawler.class.php(67): Crawler->_getFilesForURL('https://www.cro...')
#2 /usr/home/abcd.com/web/phpsitemapng/inc/functions/parsing.inc.php(249): Crawler->start()
#3 /usr/home/abcd.com/web/phpsitemapng/inc/functions/parsing.inc.php(63): runCrawler(Array, Array)
#4 /usr/home/abcd.com/web/phpsitemapng/index.php(26): parseFilesystem()
#5 {main}
  thrown in /usr/home/abcd.com/web/phpsitemapng/inc/classes/Crawler.class.php on line 340
[10-Jun-2021 17:05:31 Europe/Madrid] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 156
[10-Jun-2021 17:05:31 Europe/Madrid] PHP Warning:  Invalid argument supplied for foreach() in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 157
[10-Jun-2021 17:10:30 Europe/Madrid] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0
[10-Jun-2021 17:10:30 Europe/Madrid] PHP Warning:  Use of undefined constant PSNG_TXTSITEMAP_URL - assumed 'PSNG_TXTSITEMAP_URL' (this will throw an Error in a future version of PHP) in /usr/home/abcd.com/web/phpsitemapng/inc/functions/parsing.inc.php on line 489
[10-Jun-2021 17:10:30 Europe/Madrid] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 156
[10-Jun-2021 17:10:30 Europe/Madrid] PHP Warning:  Invalid argument supplied for foreach() in /usr/home/abcd.com/web/phpsitemapng/inc/classes/LayoutEngine.class.php on line 157

Many thanks for your help

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.