mahtab2003 / Xera

Now Introducing a new and easy way to manage your clients and MyOwnFreeHost hosting accounts.
https://xera.eu.org/
GNU General Public License v2.0
45 stars 37 forks source link

whois lookup not working #92

Closed noisria closed 2 days ago

noisria commented 6 months ago

page not working ERROR 500

noisria commented 6 months ago

check app\controllers\U.php

function whois_lookup()
{
    if($this->user->is_logged())
    {
        $data['title'] = 'whois_lookup';
        $this->load->helper('whois');
greenreader9 commented 3 months ago

Share error logs

betasio commented 2 months ago

idk this whois lookup does not work how can we fix it

we get internal error 500

Share error logs

santydesignscr commented 1 week ago

It will be fixed soon

santydesignscr commented 2 days ago

It's due to a limitation of MOFH, you can't use that feature in a free hosting, I will add an option to disable that features that will not work on MOFH (admin will be able to enable or disable it)

betasio commented 2 days ago

hello, its fine I have managed to fix it way before and its working for me very well it was a php 8.2 error u just need to do this change:

The change is relatively small, in line 227 of file "app\helpers\whois_helper.php" you'll need to replace the curly brace syntax with a bracket syntax, so change this:

        `if(($whoIsRecord != '') && ($whoIsRecord{0} != '#') && ($whoIsRecord{0} != '%')) {`

to this:

        `if(($whoIsRecord != '') && ($whoIsRecord[0] != '#') && ($whoIsRecord[0] != '%')) {`
santydesignscr commented 2 days ago

Ohhh, I don't know why Mehtab used that braked, let me update the code

b10fc8e4e8c1aa5bc182f2c985aa8c553c146c84 fixed the problem

santydesignscr commented 2 days ago

My production implementation of Xera set PHP 7.4 and I don't remember and my development server is set PHP 8.2, I only tested in production, effectively the error was on my development server and I don't seen

mahtab2003 commented 1 day ago

Ohhh, I don't know why Mehtab used that braked, let me update the code

b10fc8e fixed the problem

Well the fact is i never read or write the code for that function i just copied it from Stackoverflow