Was getting this error when loading the Change Log feed:
PHP Fatal error: Cannot declare class Misc, because the name is already in use in /var/www/classes/misc.class.php on line 2. The require line might have been able to be removed completely, but I wasn’t sure (it runs fine for me without it, but there must be some other way this page is loaded without the Misc class included or I assume someone would’ve noticed this much sooner). So I switched it to require_once.
Was getting this error when loading the Change Log feed:
`PHP Fatal error: Cannot declare class Misc, because the name is already in use in /var/www/classes/misc.class.php on line 2`. The require line might have been able to be removed completely, but I wasn't sure (it runs fine for me without it, but there must be some other way this page is loaded without the Misc class included or I assume someone would've noticed this much sooner). So I switched it to require_once.
Actually, it looks like classes/misc.class.php is included in /feeds.php, and /sections/feeds/index.php is only ever called by /feeds.php. So it is definitely not needed.
Actually, it looks like classes/misc.class.php is included in /feeds.php, and /sections/feeds/index.php is only ever called by /feeds.php. So it is definitely not needed.
Was getting this error when loading the Change Log feed:
PHP Fatal error: Cannot declare class Misc, because the name is already in use in /var/www/classes/misc.class.php on line 2
. The require line might have been able to be removed completely, but I wasn’t sure (it runs fine for me without it, but there must be some other way this page is loaded without the Misc class included or I assume someone would’ve noticed this much sooner). So I switched it to require_once.Actually, it looks like classes/misc.class.php is included in /feeds.php, and /sections/feeds/index.php is only ever called by /feeds.php. So it is definitely not needed.
Thanks. Went ahead and made a somewhat larger change based on this that includes the same fix. Appreciate the report and debugging.