Problem with a datatype (gmapslocation extension)

Author Message

Daniele Nocentini

Thursday 03 September 2009 7:31:54 am

I have try to install the great extension bcgmapslocation on a ez 4.1.3 installation but the new datatype "gmap location" it's not displayed on a datatype list when edit a my class. I another ez 4.1.3 installation the extension work fine.
I don't know where is the problem and how to find also in the log's error file no message was written.
Can someone help me?

Antica Bottega Digitale srl
http://www.abd.it

Daniele Nocentini

Thursday 03 September 2009 8:41:33 am

I tried another datatype extension and also this not available on the datatype selection list, why this behavior with all datatype extensions?

Antica Bottega Digitale srl
http://www.abd.it

Xavier Serna

Thursday 03 September 2009 9:10:19 am

You should make sure that datatype extensions are activated in the right form. To check this, navigate trough the admin interface and check for the admin siteaccess, the file site.ini to be sure that the extensions are present in the ActiveExtensions array.

Also perhaps the datatype array is reset in any other extension, that makes your new datatypes not present in the system.

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Daniele Nocentini

Friday 04 September 2009 12:07:27 am

Thanks for reply. This is the normal configuration and the extensions are activated in site.ini override so all the datatypes are available on all siteaccess including admin.

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Friday 04 September 2009 12:18:38 am

Hi,

You can try new extension http://svn.projects.ez.no/ezgmaplocation/trunk/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/

In order to use it you need to update autoload array for extensions as it provides new PHP classes.

Use normal {attribute_view_gui} function if you want to display datatype content in your templates.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Friday 04 September 2009 12:31:53 am

Yes I have updated the autoload array by command line:

php bin/php/ezpgenerateautoloads.php -e

and from admin interface.

If I look inside file var\autoload\ezp_extension.php I can see this lines:

 

'eZGmapLocation' => 'extension/ezgmaplocation/classes/ezgmaplocation.php',

'eZGmapLocationInfo' => 'extension/ezgmaplocation/ezinfo.php',

'eZGmapLocationType' => 'extension/ezgmaplocation/datatypes/ezgmaplocation/ezgmaplocationtype.php',

The strange think it's that I have tried another datatype extension and also this not showed on datatypes list.

Antica Bottega Digitale srl
http://www.abd.it

André R.

Friday 04 September 2009 12:51:15 am

Have you for some reason deactivated EZP_INI_FILEMTIME_CHECK in \config.php? like:

define( 'EZP_INI_FILEMTIME_CHECK', false );

In that case you'll have to manually clear ini cache every time you change your ini setting or activate extensions.
I have not seen this issue with my local 4.1.3 install, so that's why I don't think it's a bug.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Łukasz Serwatka

Friday 04 September 2009 12:57:16 am

Hi

Also make sure you have installed DB schema: http://svn.projects.ez.no/ezgmaplocation/trunk/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/sql/mysql/mysql.sql

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Friday 04 September 2009 1:08:07 am

Hi Andrè! In config.php file the only one think that I do it's to activate this line:

define( 'EZP_USE_BUNDLED_COMPONENTS', true );

because in a CentOS system with Plesk Panel I have not been able to install ezcomponents.

I have also disabled all cache in the admin siteaccess.

Antica Bottega Digitale srl
http://www.abd.it

Daniele Nocentini

Friday 04 September 2009 2:01:07 am

Ok so now I have installed in that machine a fresh ez 4.1.3 with installation wizard, than I have installed gmapslocation extension with activation, sql db updatating and running update array for extension also I have clearing all cache but the new datatype it's still not available on class edit datatype selection list.
This can be a problem concern to operating system configuration?

Antica Bottega Digitale srl
http://www.abd.it

André R.

Friday 04 September 2009 2:04:17 am

Not sure, as in shouldn't be, we'll try to reproduce it here.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Daniele Nocentini

Friday 04 September 2009 2:53:26 am

Now I try a test with new ezpublish 4.2 alpha version and I can see that the ezgmaplocation it's in bundle and works fine, so the problem could be a bug on ez 4.1.3 in particular situation?

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Friday 04 September 2009 7:38:47 am

Hi Daniele,

ezgmaplocation is working fine with eZ Publish 4.1.3. Here are the steps I took during test:

1. Installed eZ Publish 4.1.3 with ezwebin
2. Exported the ezgmaplocation to the extension folder like

svn export http://svn.projects.ez.no/ezgmaplocation/trunk/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/ ezgmaplocation

3. Updated settings/override/site.ini.append.php and activated the extension as first on the list.
4. Loaded mysql schema from extension/ezgmaplocation/sql/mysql/mysql.sql
5. Updated autoload array

I can see GMap Location datatype on the list.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Friday 04 September 2009 7:55:40 am

Hi Łukasz! thanks for support.

this is exact what I did many times in more then one ez installations but in this particular system no new datatypes are recognized by the ezpublish.
There is a method to check if a datatype it's load from ezpublish?!
I can make my own datatype for testing.

Antica Bottega Digitale srl
http://www.abd.it

André R.

Friday 04 September 2009 12:54:08 pm

try to add a "echo 'No way!';" in the datatype file, and see if it pups up when creating / editing a class.
Maybe check your permissions on the extension or ezgmaplocation folder and make sure its readable by apache / httpd / www user.
Are you on PHP 5.2.9? Then update or downgrade, serious array_unique issues with it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.