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.

eZ debug

Timing: Jan 18 2025 11:17:48
Script start
Timing: Jan 18 2025 11:17:48
Module start 'layout'
Timing: Jan 18 2025 11:17:48
Module start 'content'
Timing: Jan 18 2025 11:17:49
Module end 'content'
Timing: Jan 18 2025 11:17:49
Script end

Main resources:

Total runtime1.0148 sec
Peak memory usage4,096.0000 KB
Database Queries97

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.1641152.6406
Module start 'layout' 0.00660.0032 741.804739.4922
Module start 'content' 0.00981.0032 781.2969781.7031
Module end 'content' 1.01300.0017 1,563.000036.1250
Script end 1.0147  1,599.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3077160.0002
Check MTime0.00140.1331160.0001
Mysql Total
Database connection0.00080.077810.0008
Mysqli_queries0.910989.7673970.0094
Looping result0.00090.0855950.0000
Template Total0.979496.520.4897
Template load0.00180.180620.0009
Template processing0.977696.334620.4888
Template load and register function0.00010.012910.0001
states
state_id_array0.00180.178510.0018
state_identifier_array0.00400.393020.0020
Override
Cache load0.00190.1893830.0000
Sytem overhead
Fetch class attribute can translate value0.00090.088940.0002
Fetch class attribute name0.00200.1965190.0001
XML
Image XML parsing0.00210.209940.0005
class_abstraction
Instantiating content class attribute0.00010.0064300.0000
General
dbfile0.00120.1175370.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
15content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
15content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 59
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs