HEX
Server: LiteSpeed
System: Linux lt-bnk-web1368.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User: u362014288 (362014288)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/hostinger-easy-onboarding/includes/Errors.php
<?php

namespace Hostinger;

defined( 'ABSPATH' ) || exit;

class Errors {

    private $error_messages;

    public function __construct() {
        $this->error_messages = array(
            'action_failed'    => array(
                'default' => __( 'Action Failed. Try again or contact support. Apologies.', 'hostinger-easy-onboarding' ),
            ),
            'unexpected_error' => array(
                'default' => __( 'An unexpected error occurred. Please try again or contact support.', 'hostinger-easy-onboarding' ),
            ),
            'server_error'     => array(
                'default' => __( 'We apologize for the inconvenience. The AI content generation process encountered a server error. Please try again later, and if the issue persists, kindly contact our support team for assistance.', 'hostinger-easy-onboarding' ),
            ),
        );
    }

    public function get_error_message( string $error_code ) {
        if ( array_key_exists( $error_code, $this->error_messages ) ) {
            $message_data = $this->error_messages[ $error_code ];

            return $message_data['default'];
        } else {
            return __( 'Unknown error code.', 'hostinger-easy-onboarding' );
        }
    }
}

new Errors();