webempoweredchurch / wec_map

Mapping extension for TYPO3 that connects to geocoding databases and Google Maps API.
http://webempoweredchurch.org
6 stars 3 forks source link

Broken in TYPO3 4.6 #1

Closed jsegars closed 12 years ago

jsegars commented 12 years ago

Received this bug report via email from Oliver Salzburg kinggencha@googlemail.com

while installing wec_map on a new 4.6 installation just now, I got this error when trying to open any of the wec_map backend modules:

Map Admin: Fatal error: Call to undefined method t3lib_div::makeInstanceClassname() in /.../typo3/typo3conf/ext/wec_map/mod1/index.php on line 206

User Map: Fatal error: Call to undefined method t3lib_div::makeInstanceClassName() in /.../typo3/typo3conf/ext/wec_map/mod2/index.php on line 350

gencha commented 12 years ago

Just in case someone else is in need for a quick fix. t3lib_div::makeInstanceClassname was deprecated in favor of t3lib_div::makeInstance So, replace all occurrences and you should be fine. After that you will run into the next deprecated method t3lib_div::GParrayMerged which was replaced by t3lib_div::_GPmerged.

jsegars commented 12 years ago

I believe this is fixed as of bb942d713676b8f462cee140c3a423af3a10b750. If you'd like to test, I'd welcome any feedback :)

gencha commented 12 years ago

The functionality I need works with that revision. But in the BE module FE User Map I now get this error:

Fatal error: require_once() [function.require]: Failed opening required '../class.tx_wecmap_cache.php' (include_path='.:/usr/local/lib/php:/kunden/88816_32457/webseiten/reboot/typo3/typo3/contrib/pear/') in /kunden/88816_32457/webseiten/reboot/typo3/typo3conf/ext/wec_map/mod2/index.php on line 37

Damn PHP with its weird inclusion logic when it comes to relative paths in require()...

jsegars commented 12 years ago

I recently switched from including the backend module directly to using TYPO3's dispatcher, so that's what the relative path is breaking now. I'll get that updated tomorrow.

jsegars commented 12 years ago

Should be fixed in b40034a8317f7718f3bf11a8cb9d5e6025759c0f. If you can let me know if it works properly for you now. I"ll get this issue closed and get the new version in the TER. Thanks!

gencha commented 12 years ago

Works like a charm. Thanks ;)

jsegars commented 12 years ago

Thanks for testing!