Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
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;
@EvoSw

This comment has been minimized.

Copy link

commented Jan 16, 2018

thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.