erintheunready / ComicControl

The main repo for ComicControl Development.
24 stars 6 forks source link

PHP error - Failed to Open Stream; No such File or directory when using cc-4 Templates #15

Open orribu opened 2 years ago

orribu commented 2 years ago

Heya, When I attempt to use the cc-4 templates, I get the following error:

Warning: include(templates/main/includes/header.php): failed to open stream: No such file or directory in /.../public_html/templates/cc-4/page.php on line 2
Warning: include(): Failed opening 'templates/main/includes/header.php' for inclusion (include_path='.:/usr/local/php74/pear') in /.../public_html/templates/cc-4/page.php on line 2
Warning: include(templates/main/includes/footer.php): failed to open stream: No such file or directory in /.../public_html/templates/cc-4/page.php on line 6
Warning: include(): Failed opening 'templates/main/includes/footer.php' for inclusion (include_path='.:/usr/local/php74/pear') in /.../public_html/templates/cc-4/page.php on line 6

Turns out the code was calling for a directory in the template folder called "main," so I changed all instances of "main" to "basic" and it fixed everything right up!

erintheunready commented 2 years ago

Thanks for pointing this out, I will fix this when I get a chance! Erin

On Sat, Dec 25, 2021 at 12:45 AM orribu @.***> wrote:

Heya, When I attempt to use the cc-3 and cc-4 templates, I get the following error:

Warning: include(templates/main/includes/header.php): failed to open stream: No such file or directory in /.../public_html/templates/cc-4/page.php on line 2 Warning: include(): Failed opening 'templates/main/includes/header.php' for inclusion (include_path='.:/usr/local/php74/pear') in /.../public_html/templates/cc-4/page.php on line 2 Warning: include(templates/main/includes/footer.php): failed to open stream: No such file or directory in /.../public_html/templates/cc-4/page.php on line 6 Warning: include(): Failed opening 'templates/main/includes/footer.php' for inclusion (include_path='.:/usr/local/php74/pear') in /.../public_html/templates/cc-4/page.php on line 6

Turns out the code was calling for a directory in the template folder called "main," so I changed all instances of "main" to "basic" and it fixed everything right up!

— Reply to this email directly, view it on GitHub https://github.com/erintheunready/ComicControl/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC64CG4ZWKOWS65I54XJOVDUSVR65ANCNFSM5KXQNRZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

orribu commented 2 years ago

Oh hey, no problem at all! I'm really diggin' the cms so far! ;u;/