Created
September 10, 2014 18:28
-
-
Save brookinsconsulting/88d5f62082c70fdf3c91 to your computer and use it in GitHub Desktop.
eZ Publish 4.6 Kernel Patch to Run Using PHP 5.4 (or greater). Apply patch with these commands: cd /path/to/ez; patch -s -p0 < kernel_patch_for_ezpublish46_lib_ezutils_for_php54.patch; Forum Reference: http://share.ez.no/forums/install-configuration/php-5.4.1-no-call-method-defined-for-function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN lib/ezutils/classes/ezmodulefunctioninfo.php lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmodulefunctioninfo.php | |
--- lib/ezutils/classes/ezmodulefunctioninfo.php 2014-09-10 13:11:28.000000000 -0500 | |
+++ lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmodulefunctioninfo.php 2014-09-10 13:03:15.000000000 -0500 | |
@@ -112,12 +112,12 @@ | |
return false; | |
} | |
$functionDefinition = $this->FunctionList[$functionName]; | |
- if ( !isset( $functionName['call_method'] ) ) | |
+ if ( !isset( $functionDefinition['call_method'] ) ) | |
{ | |
eZDebug::writeError( "No call method defined for function '$functionName' in module '$moduleName'", __METHOD__ ); | |
return false; | |
} | |
- if ( !isset( $functionName['parameters'] ) ) | |
+ if ( !isset( $functionDefinition['parameters'] ) ) | |
{ | |
eZDebug::writeError( "No parameters defined for function '$functionName' in module '$moduleName'", __METHOD__ ); | |
return false; | |
@@ -154,12 +154,12 @@ | |
return null; | |
} | |
$functionDefinition = $this->FunctionList[$functionName]; | |
- if ( !isset( $functionName['call_method'] ) ) | |
+ if ( !isset( $functionDefinition['call_method'] ) ) | |
{ | |
eZDebug::writeError( "No call method defined for function '$functionName' in module '$moduleName'", __METHOD__ ); | |
return null; | |
} | |
- if ( !isset( $functionName['parameters'] ) ) | |
+ if ( !isset( $functionDefinition['parameters'] ) ) | |
{ | |
eZDebug::writeError( "No parameters defined for function '$functionName' in module '$moduleName'", __METHOD__ ); | |
return null; | |
diff -ruN lib/ezutils/classes/ezmoduleoperationinfo.php lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmoduleoperationinfo.php | |
--- lib/ezutils/classes/ezmoduleoperationinfo.php 2014-09-10 13:11:21.000000000 -0500 | |
+++ lib-for-ezp46-patched-for-php-54/ezutils/classes/ezmoduleoperationinfo.php 2014-09-10 13:06:09.000000000 -0500 | |
@@ -130,17 +130,17 @@ | |
return null; | |
} | |
$operationDefinition = $this->OperationList[$operationName]; | |
- if ( !isset( $operationName['default_call_method'] ) ) | |
+ if ( !isset( $operationDefinition['default_call_method'] ) ) | |
{ | |
eZDebug::writeError( "No call method defined for operation '$operationName' in module '$moduleName'", __METHOD__ ); | |
return null; | |
} | |
- if ( !isset( $operationName['body'] ) ) | |
+ if ( !isset( $operationDefinition['body'] ) ) | |
{ | |
eZDebug::writeError( "No body for operation '$operationName' in module '$moduleName'", __METHOD__ ); | |
return null; | |
} | |
- if ( !isset( $operationName['parameters'] ) ) | |
+ if ( !isset( $operationDefinition['parameters'] ) ) | |
{ | |
eZDebug::writeError( "No parameters defined for operation '$operationName' in module '$moduleName'", __METHOD__ ); | |
return null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!!!