Deprecated: Return type of Whoops\Exception\FrameCollection::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 87

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 96

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 105

Deprecated: Return type of Whoops\Exception\FrameCollection::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 114

Deprecated: Return type of Whoops\Exception\FrameCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 78

Deprecated: Whoops\Exception\FrameCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 20

Deprecated: Return type of Whoops\Exception\FrameCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/FrameCollection.php on line 123

Deprecated: Whoops\Exception\Frame implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/livrador/public_html/vendor/filp/whoops/src/Whoops/Exception/Frame.php on line 12
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_DEPRECATED)
Return type of ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice Whoops\Exception\ErrorException thrown with message "Return type of ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice" Stacktrace: #3 Whoops\Exception\ErrorException in /home/livrador/public_html/system/models/ORM.php:2276 #2 Whoops\Run:handleError in /home/livrador/public_html/system/models/ORM.php:40 #1 require in /home/livrador/public_html/system/app.php:79 #0 require in /home/livrador/public_html/index.php:3
Stack frames (4)
3
Whoops
\
Exception
\
ErrorException
/
system
/
models
/
ORM.php
2276
2
Whoops
\
Run
handleError
/
system
/
models
/
ORM.php
40
1
require
/
system
/
app.php
79
0
require
/
index.php
3
/
home
/
livrador
/
public_html
/
system
/
models
/
ORM.php
    }
 
    // --------------------- //
    // --- MAGIC METHODS --- //
    // --------------------- //
 
    public function __unset($key) {
        $this->offsetUnset($key);
    }
 
    public function offsetUnset($key) {
        unset($this->_data[$key]);
        unset($this->_dirty_fields[$key]);
    }
 
    public function __isset($key) {
        return $this->offsetExists($key);
    }
 
    public function offsetExists($key) {
        return array_key_exists($key, $this->_data);
    }
 
    /**
     * Magic method to capture calls to undefined class methods.
     * In this case we are attempting to convert camel case formatted
     * methods into underscore formatted methods.
     *
     * This allows us to call ORM methods using camel case and remain
     * backwards compatible.
     *
     * @param  string $name
     * @param  array  $arguments
     *
     * @return ORM
     */
    public function __call($name, $arguments) {
        $method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));
 
        if(method_exists($this, $method)) {
/
home
/
livrador
/
public_html
/
system
/
models
/
ORM.php
 * * Redistributions of source code must retain the above copyright notice, this
 *   list of conditions and the following disclaimer.
 *
 * * Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
class ORM implements ArrayAccess {
 
    // ----------------------- //
    // --- CLASS CONSTANTS --- //
    // ----------------------- //
 
    // WHERE and HAVING condition array keys
    const CONDITION_FRAGMENT = 0;
    const CONDITION_VALUES   = 1;
 
    const DEFAULT_CONNECTION = 'default';
 
    // Limit clause style
    const LIMIT_STYLE_TOP_N = "top";
    const LIMIT_STYLE_LIMIT = "limit";
 
    // ------------------------ //
    // --- CLASS PROPERTIES --- //
    // ------------------------ //
 
    // Class configuration
/
home
/
livrador
/
public_html
/
system
/
app.php
*/
if (APP_STAGE == 'Dev') {
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(-1);
    $whoops = new \Whoops\Run;
    $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
    $whoops->register();
}
else {
    error_reporting(0);
}
 
/*
|--------------------------------------------------------------------------
| ORM configuration (https://idiorm.readthedocs.io/en/latest/)
|--------------------------------------------------------------------------
|
*/
require __DIR__ . '/models/ORM.php';
ORM::configure('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME);
ORM::configure('username', DB_USER);
ORM::configure('password', DB_PASSWORD);
ORM::configure('driver_options', [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']);
ORM::configure('return_result_sets', true); // returns result sets
ORM::configure('logging', true);
 
/*
|--------------------------------------------------------------------------
| Smarty Init
|--------------------------------------------------------------------------
|
*/
$smarty = new Smarty();
 
// Set templates view
$smarty->setTemplateDir(
    array(
        APP_VIEW => APP_PATH . '/system/views/' . APP_VIEW . '/templates/',
        '_default' => APP_PATH . '/system/views/_default/templates/'
/
home
/
livrador
/
public_html
/
index.php
<?php
 
require __DIR__ . '/system/app.php';

Environment & details:

Key Value
ng sitemap.xml
empty
empty
empty
empty
Key Value
USER livrador
HOME /home/livrador
SCRIPT_NAME /index.php
REQUEST_URI /sitemap.xml
QUERY_STRING ng=sitemap.xml
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING ng=sitemap.xml
REDIRECT_URL /sitemap.xml
REMOTE_PORT 46418
SCRIPT_FILENAME /home/livrador/public_html/index.php
SERVER_ADMIN webmaster@livrador.ro
CONTEXT_DOCUMENT_ROOT /home/livrador/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/livrador/public_html
REMOTE_ADDR 216.73.216.215
SERVER_PORT 443
SERVER_ADDR 89.36.134.78
SERVER_NAME livrador.ro
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_REAL_IP 216.73.216.215
HTTP_X_FORWARDED_SERVER livrador.ro
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_HOST livrador.ro
HTTP_X_FORWARDED_FOR 216.73.216.215
HTTP_HOST livrador.ro
proxy-nokeepalive 1
SSL_TLS_SNI livrador.ro
HTTPS on
SCRIPT_URI https://livrador.ro/sitemap.xml
SCRIPT_URL /sitemap.xml
UNIQUE_ID aaVnCInG26s32D1ye56MawAAABM
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI livrador.ro
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://livrador.ro/sitemap.xml
REDIRECT_SCRIPT_URL /sitemap.xml
REDIRECT_isproxyrequest 1
REDIRECT_UNIQUE_ID aaVnCInG26s32D1ye56MawAAABM
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1772447496.334
REQUEST_TIME 1772447496
argv Array ( [0] => ng=sitemap.xml )
argc 1
empty
0. Whoops\Handler\PrettyPageHandler