[GH-ISSUE #21] phpwhois error running php version 7.1.14 #12

Closed
opened 2026-02-25 21:30:49 +03:00 by kerem · 7 comments
Owner

Originally created by @adamchilcott on GitHub (Apr 8, 2018).
Original GitHub issue: https://github.com/charlesabarnes/SPFtoolbox/issues/21

Appears to be an issue with phpwhois

https://mycooldomain.lan/SPFtoolbox/getWhois.php?domain=abc.net.au

<br />
<b>Warning</b>:  Illegal string offset 'domain' in <b>/Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code</b> on line <b>1</b><br />
<br />
<b>Fatal error</b>:  Uncaught Error: Cannot use string offset as an array in /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code:1
Stack trace:
#0 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370): eval()
#1 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.au.php(54): generic_parser_b(Array, Array)
#2 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.client.php(472): au_handler-&gt;parse(Array, 'abc.net.au')
#3 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.client.php(257): WhoisClient-&gt;Process(Array, true)
#4 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.main.php(259): WhoisClient-&gt;GetData('abc.net.au', true)
#5 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/getWhois.php(15): Whois-&gt;Lookup('abc.net.au')
#6 {main}
  thrown in <b>/Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code</b> on line <b>1</b><br />

Client Side:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Originally created by @adamchilcott on GitHub (Apr 8, 2018). Original GitHub issue: https://github.com/charlesabarnes/SPFtoolbox/issues/21 Appears to be an issue with phpwhois ``` https://mycooldomain.lan/SPFtoolbox/getWhois.php?domain=abc.net.au <br /> <b>Warning</b>: Illegal string offset 'domain' in <b>/Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code</b> on line <b>1</b><br /> <br /> <b>Fatal error</b>: Uncaught Error: Cannot use string offset as an array in /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code:1 Stack trace: #0 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370): eval() #1 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.au.php(54): generic_parser_b(Array, Array) #2 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.client.php(472): au_handler-&gt;parse(Array, 'abc.net.au') #3 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.client.php(257): WhoisClient-&gt;Process(Array, true) #4 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.main.php(259): WhoisClient-&gt;GetData('abc.net.au', true) #5 /Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/getWhois.php(15): Whois-&gt;Lookup('abc.net.au') #6 {main} thrown in <b>/Volumes/MyMagicDrive/SuperSecret/Directory/Apache/SPFtoolbox/phpwhois/whois.parser.php(370) : eval()'d code</b> on line <b>1</b><br /> ``` Client Side: `Failed to load resource: the server responded with a status of 500 (Internal Server Error)`
kerem 2026-02-25 21:30:49 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ghost commented on GitHub (Jun 30, 2018):

Receiving error 500 when searching '.com' domains. PHP version 7.1.14 as well. IIS 10, Windows server 2016.

Searching other '.co.uk' domains works as expected.

<!-- gh-comment-id:401549410 --> @ghost commented on GitHub (Jun 30, 2018): Receiving error 500 when searching '.com' domains. PHP version 7.1.14 as well. IIS 10, Windows server 2016. Searching other '.co.uk' domains works as expected.
Author
Owner

@ghost commented on GitHub (Jun 30, 2018):

Resolved issue by installing 7.0.x along side of 7.1.14. With IIS 10, it automatically switch the "site" to an earlier version and now all works great.

<!-- gh-comment-id:401565526 --> @ghost commented on GitHub (Jun 30, 2018): Resolved issue by installing 7.0.x along side of 7.1.14. With IIS 10, it automatically switch the "site" to an earlier version and now all works great.
Author
Owner

@charlesabarnes commented on GitHub (Jun 30, 2018):

I am working to programmatically fix this error but whenever I debug it it works.

<!-- gh-comment-id:401565662 --> @charlesabarnes commented on GitHub (Jun 30, 2018): I am working to programmatically fix this error but whenever I debug it it works.
Author
Owner

@ghost commented on GitHub (Jun 30, 2018):

If there is anything I can do to assist, feel free to ask.

<!-- gh-comment-id:401565761 --> @ghost commented on GitHub (Jun 30, 2018): If there is anything I can do to assist, feel free to ask.
Author
Owner

@mjhdcode commented on GitHub (Jan 7, 2019):

I'm having this same error - php 7.2, CentOS 7, Apache:
PHP Fatal error: Uncaught Error: Cannot use string offset as an array in var/www/html/whois/phpwhois/whois.parser.php(370) : eval()'d code:1
Stack trace:
#0

<!-- gh-comment-id:452094156 --> @mjhdcode commented on GitHub (Jan 7, 2019): I'm having this same error - php 7.2, CentOS 7, Apache: PHP Fatal error: Uncaught Error: Cannot use string offset as an array in var/www/html/whois/phpwhois/whois.parser.php(370) : eval()'d code:1 Stack trace: #0
Author
Owner

@mjhdcode commented on GitHub (Jan 8, 2019):

roxyschram solution works -> just install PHP70 and run fpm on a different port

<!-- gh-comment-id:452358322 --> @mjhdcode commented on GitHub (Jan 8, 2019): roxyschram solution works -> just install PHP70 and run fpm on a different port
Author
Owner

@charlesabarnes commented on GitHub (Jan 21, 2019):

this should be fixed. Let me know if you see any more problems

<!-- gh-comment-id:456195858 --> @charlesabarnes commented on GitHub (Jan 21, 2019): this should be fixed. Let me know if you see any more problems
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPFtoolbox#12
No description provided.