Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
4.0.1
-
None
Description
Symptoms of this issue:
- VersionView feature of eZPublish does not work
- Debug Output shows something akin to the following:
oci_execute() [<a href='function.oci-execute'>function.oci-execute</a>]: ORA-01400: cannot insert NULL into ("EZDATABASENAME"."EZDBFILE"."NAME")
ORA-06512: at "EZDATABASENAME.EZEXCLUSIVELOCK", line 4
ORA-01403: no data found
ORA-06512: at line 1 in extension/ezoracle/clusterfilehandlers/dbbackends/oracle.php on line 1137
To Resolve the issue:
See kernel/content/versionview.php
302 303 $Result = eZNodeviewfunctions::generateNodeView( $tpl, $node, $contentObject, $LanguageCode, 'full', 0, 304 false, false, false );
I augmented the 8th parameter ( $cachePath ) of the call to eZNodeviewfunctions::generateNodeView( ) to push through the value 'var/cache'. You may need to pull this dynamically from another function for it to work in all environments, or catch it later on to resolve in the public trunk.
302 303 $Result = eZNodeviewfunctions::generateNodeView( $tpl, $node, $contentObject, $LanguageCode, 'full', 0, 304 false, 'var/cache', false );
Without the path, in clustered envionments you get a null $Result ( it relates to the cache file not being generated due to the missing path when passing via the eZOracle extension ).
Steps to reproduce
- Setup eZPublish with an Oracle cluster, configuring file.ini to push all files into the database
- Try and use the content/versionview kernel module
Attachments
Issue Links
- duplicates
-
EZP-12925 Preview in cluster mode
- Closed