2023-09-23 19:54:14 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This template is used for rendering exceptions
|
|
|
|
*/
|
|
|
|
?>
|
2022-10-29 11:46:37 +03:00
|
|
|
<div class="error">
|
2022-07-08 21:39:13 +03:00
|
|
|
|
2023-03-20 21:11:51 +03:00
|
|
|
<?php if ($e instanceof HttpException): ?>
|
|
|
|
<?php if ($e instanceof CloudFlareException): ?>
|
|
|
|
<h2>The website is protected by CloudFlare</h2>
|
|
|
|
<p>
|
|
|
|
RSS-Bridge tried to fetch a website.
|
|
|
|
The fetching was blocked by CloudFlare.
|
|
|
|
CloudFlare is anti-bot software.
|
|
|
|
Its purpose is to block non-humans.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
2022-07-10 20:50:51 +03:00
|
|
|
|
2023-03-20 21:11:51 +03:00
|
|
|
<?php if ($e->getCode() === 404): ?>
|
2023-09-23 19:54:14 +03:00
|
|
|
<h2>404 Page Not Found</h2>
|
2023-03-20 21:11:51 +03:00
|
|
|
<p>
|
|
|
|
RSS-Bridge tried to fetch a page on a website.
|
|
|
|
But it doesn't exists.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if ($e->getCode() === 429): ?>
|
2023-09-23 21:39:02 +03:00
|
|
|
<h2>429 Too Many Requests</h2>
|
2023-03-20 21:11:51 +03:00
|
|
|
<p>
|
|
|
|
RSS-Bridge tried to fetch a website.
|
|
|
|
They told us to try again later.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2023-09-23 19:54:14 +03:00
|
|
|
<?php if ($e->getCode() === 503): ?>
|
|
|
|
<h2>503 Service Unavailable</h2>
|
|
|
|
<p>
|
|
|
|
Common causes are a server that is down for maintenance
|
|
|
|
or that is overloaded.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2023-03-20 21:11:51 +03:00
|
|
|
<?php else: ?>
|
|
|
|
<?php if ($e->getCode() === 10): ?>
|
|
|
|
<h2>The rss feed is completely empty</h2>
|
|
|
|
<p>
|
|
|
|
RSS-Bridge tried parse the empty string as xml.
|
|
|
|
The fetched url is not pointing to real xml.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if ($e->getCode() === 11): ?>
|
|
|
|
<h2>There is something wrong with the rss feed</h2>
|
|
|
|
<p>
|
|
|
|
RSS-Bridge tried parse xml. It failed. The xml is probably broken.
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
2022-07-08 21:39:13 +03:00
|
|
|
|
2022-10-29 11:46:37 +03:00
|
|
|
<h2>Details</h2>
|
2022-10-16 18:55:43 +03:00
|
|
|
|
2022-10-29 11:46:37 +03:00
|
|
|
<div style="margin-bottom: 15px">
|
2023-09-30 23:09:59 +03:00
|
|
|
<div class="error-type">
|
2022-10-29 11:46:37 +03:00
|
|
|
<strong>Type:</strong> <?= e(get_class($e)) ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>Code:</strong> <?= e($e->getCode()) ?>
|
|
|
|
</div>
|
|
|
|
|
2023-09-30 23:09:59 +03:00
|
|
|
<div class="error-message">
|
2023-03-06 23:47:25 +03:00
|
|
|
<strong>Message:</strong> <?= e(sanitize_root($e->getMessage())) ?>
|
2022-10-29 11:46:37 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2023-03-06 23:47:25 +03:00
|
|
|
<strong>File:</strong> <?= e(sanitize_root($e->getFile())) ?>
|
2022-10-29 11:46:37 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>Line:</strong> <?= e($e->getLine()) ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Trace</h2>
|
|
|
|
|
|
|
|
<?php foreach (trace_from_exception($e) as $i => $frame) : ?>
|
2022-10-16 18:55:43 +03:00
|
|
|
<code>
|
|
|
|
#<?= $i ?> <?= e(frame_to_call_point($frame)) ?>
|
|
|
|
</code>
|
2022-08-06 23:46:28 +03:00
|
|
|
<br>
|
2022-10-16 18:55:43 +03:00
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<br>
|
2022-08-06 23:46:28 +03:00
|
|
|
|
2022-10-16 18:55:43 +03:00
|
|
|
<h2>Context</h2>
|
2022-07-08 15:17:25 +03:00
|
|
|
|
2022-10-29 11:46:37 +03:00
|
|
|
<div>
|
|
|
|
<strong>Query:</strong> <?= e(urldecode($_SERVER['QUERY_STRING'] ?? '')) ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>Version:</strong> <?= raw(Configuration::getVersion()) ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>OS:</strong> <?= raw(PHP_OS_FAMILY) ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>PHP:</strong> <?= raw(PHP_VERSION ?: 'Unknown') ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="/">Go back</a>
|
2022-07-08 21:39:13 +03:00
|
|
|
</div>
|
2022-07-08 15:17:25 +03:00
|
|
|
|