sproctor / php-calendar

PHP-Calendar
http://www.php-calendar.org/
Apache License 2.0
138 stars 66 forks source link

Embedding headach #144

Closed 1EyeTy closed 7 years ago

1EyeTy commented 8 years ago

I know that the directions say it is easy but I cannot get this to work no matter what I do. I have tried every type of include statement I can think of since I think that might be the issue. As you can see from the file the calendar is not showing. No error. I open index.php calendar and it works but not the embed.

Using wamp: site address:http://localhost/newauthorsite/twbarton_com/Includes actual file location : C:\wamp64\www\newauthorsite\twbarton_com\includes

Any help would be appreciated.

phpcalendar

1EyeTy commented 8 years ago

Ok, so I changed the page from html to php to see what the heck is going on and I at least have something. Code>

<?php 
    include '/includes/embed_setup.php';
?>
<html>
  <head>
    <title>Example Embedded Page</title>
  </head>
  <body>
    <h1>Example Page Header</h1>
        <?php 
            include '/includes/embed.php';
        ?>
  </body>
</html>

phpcalendar2

bonnebulle commented 8 years ago

Exacltly the same here (Firefox user, Php up to date)

theriou commented 8 years ago

You need to manually do this commit: https://github.com/sproctor/php-calendar/commit/fc002a857476d1f1f725e93007a08dd30355dd64

as seen in fixed issue https://github.com/sproctor/php-calendar/issues/128

Revo86 commented 7 years ago

my page is completely white besides the title even after the fix.

sproctor commented 7 years ago

This should be fixed in 2.0.10. If you're getting a blank page, it's because PHP is set to not display errors and you'll need to check your logs.