Update any Joomla site that uses geoip2 to v3.9.4
The site to be fully functional.
Unexpected file extension in "phar://geoip2.phar/src/Database/Reader.php"
| Labels | 
                                        Added: 
?
 | 
    ||
| Status | New | ⇒ | Discussion | 
@Karl-Goddard hmm strange @jurihahn tested it with the new version successfully
@Karl-Goddard can test this on another host? With a lower or higher PHP version?
@HLeithner I have another test server running PHP7. I'll give it a try and let you know the result.
PHP version:
PHP 7.2.13 (cli) (built: Dec  5 2018 07:37:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.13, Copyright (c) 1999-2018, by Zend Technologies
Attached is a screenshot of the site on the php7 server after it was updated to 3.9.4
![screenshot-php7 sungroupinc com-2019 03 13-08-25-39]
(https://user-images.githubusercontent.com/47645546/54278815-db060c00-4569-11e9-82ea-08fe618bef6d.png)
@Karl-Goddard In the mentioned PharStreamWrapper.php file around line 445 (in method collectInvocation($path)), could you please var_dump($path) and post it here?
I tested it again with Joomla 3.9.4, and it works as verified earlier.
PHP 7.3.2 (apache2handler)
Just for internal research and verification: Which version of the geoip2.phar has been used?
Which version of the
geoip2.pharhas been used?
latest 2.9.0
| Category | ⇒ | External Library | 
| Labels | 
                                        Added: 
J3 Issue
 | 
    ||
I think my test was wrong ... I made my correction, then I applied the patch, but it looks like patch tool dont override my hotfix...
My last test with pure Joomla was not successful, I cannot use "geoip.phar".
does not work even after update to Joomla 3.9.5
i have workaround for "GeoIP2.phar"
require_once ( 'phar://' . __DIR__ . '/geoip2.phar/vendor/autoload.php' );
Joomla include this library https://github.com/TYPO3/phar-stream-wrapper since version 3.9.3
It's a bug in this library.
do you have example code how you use this phar file? something I can copy-paste or install?
| Status | Discussion | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-14 19:42:19 | 
| Closed_By | ⇒ | HLeithner | 
Ok, I think we can close this, this is a phar-stream-wrapper problem and has it own issue at TYPO3/phar-stream-wrapper#21
Workaround: require_once ( 'phar://' . __DIR__ . '/geoip2.phar/vendor/autoload.php' );
Maybe related:
#23907
#23956
@HLeithner