jordansamuel / PASTE

Paste is a project that started from the files pastebin.com used before it was bought.
https://phpaste.sourceforge.io/
GNU General Public License v3.0
295 stars 105 forks source link

[Bug] Missing import causes `sitemap.php` to throw an error. #165

Closed bunder2015 closed 3 years ago

bunder2015 commented 3 years ago

I ran into some problems testing PASTE on a new install... (php 7.4.19)

Call to undefined function paste_protocol() in admin/sitemap.php:206\nStack trace:\n#0 {main}\n thrown in admin/sitemap.php on line 206

Placing a require_once('../includes/functions.php'); anywhere in admin/sitemap.php fixes this up.

I also moved paste_protocol() to above addToSitemap() in includes/functions.php.

thinkverse commented 3 years ago

Can reproduce this issue, will checkout the linked PR. 👍