Fresh install issues (and small patch)

64 views
Skip to first unread message

Marco Amadori

unread,
Oct 24, 2012, 6:26:07 AM10/24/12
to neolog...@googlegroups.com
Hi all,
I installed neologism 5.3 on a recent debian amd64 (sid) server, with php 5.4.4-7 and mysql 5.5.24+dfsg-9, the installation is there, and I particulary miss a feature I saw in other public neologism installation.

It seems that the (flash?) widget that displays a drop down list for Classes and Properties is missing completely.

The import of DBpedia ontology (ontology.owl renamed ontology.rdf) timeouts with:

PHP Fatal error:  Maximum execution time of 60 seconds exceeded in /srv/neologism/sites/all/modules/evoc/evoc.load_vocab.inc on line 736, referer: http://ontologies.spaziodati.eu/neologism/import

Since I already augmented the "max_execution_time", "max_input_time" in php.ini, I guess I'm missing something fundamental.

And to not just complaining without giving back a little, here it is a small patch that removes a warning ("Creating default object from empty value in /srv/neologism/sites/all/modules/neologism/neologism.module on line 1035.")

--- sites/all/modules/neologism/neologism.module_old    2012-10-24 12:09:32.000000000 +0200
+++ sites/all/modules/neologism/neologism.module        2012-10-24 11:03:16.000000000 +0200
@@ -1032,6 +1032,7 @@
  *   $custom_uri The vocabulary's custom namespace URI, if any
  */
 function _neologism_namespace_uri($path, $custom_uri = null) {
+  $node = new stdClass();
   return $node->namespace_uri = empty($custom_uri) ? url($path, array('absolute' => TRUE)) . '#' : $custom_uri;
 }

--
ESC:wq

Marco Amadori

unread,
Oct 25, 2012, 9:44:26 AM10/25/12
to neolog...@googlegroups.com


Il giorno mercoledì 24 ottobre 2012 12:26:08 UTC+2, Marco Amadori ha scritto:
Hi all,
I installed neologism 5.3 on a recent debian amd64 (sid) server, with php 5.4.4-7 and mysql 5.5.24+dfsg-9, the installation is there, and I particulary miss a feature I saw in other public neologism installation.

It seems that the (flash?) widget that displays a drop down list for Classes and Properties is missing completely.


Here it is a patch for this bug, which is related to a deprecated feature in PHP5.3, now removed in PHP5.4:

$ diff --git a/sites/all/modules/neologism/neologism.gateway.php b/sites/all/modules/neologism/neologism.gateway.php
index 6e9ad7f..858c4e7 100644
--- a/sites/all/modules/neologism/neologism.gateway.php
+++ b/sites/all/modules/neologism/neologism.gateway.php
@@ -214,7 +214,7 @@ function neologism_gateway_get_full_classes_tree() {
       }
       
       // create the node for the class 
-      _neologism_gateway_create_class_treenode(&$nodes, $node, $class, $disjointwith, $array_disjointwith, $array_references);
+      _neologism_gateway_create_class_treenode($nodes, $node, $class, $disjointwith, $array_disjointwith, $array_references);
     }
     
     // fetch all the external superclasses
@@ -909,4 +909,4 @@ function &_neologism_array_rpop(&$a){
     $v=&$a[$k];
     unset($a[$k]);
     return $v;
-}
\ No newline at end of file
+}
 
Reply all
Reply to author
Forward
0 new messages