Hi guys,
Thanks for your quick responses squishing all of the bugs in the dev preview.
I have just upgraded the test site I was working on to find/fix the bugs to the standard release and have some errors which I think boil down to about 2 actual problems and am hoping you can help.
So to re-cap this site has gone from the last dev preview to the standard 2.7 release.
Problems are:
1.
When publishing/editing an entry I recieve this error:
A PHP Error was encountered Severity: Warning Message: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Rte_ext’ does not have a method ‘publish_form_entry_data’ Filename: libraries/Extensions.php Line Number: 258
2.
When editing an entry no form data is populated with its existing values, since the above error is a Warning I thought the array of data passed the the ‘Channel Edit Form’ would have still been parsable?
Thanks for your time here guys.
UPDATE 1
I overwrote
/system/expressionengine/modules/rte/ext.rte.php
With the old version from the dev preview and it seems to be working fine however I would still like to make sure im using the full release Rte to save other potential problems so your thoughts are still appreciated.
Cheers
UPDATE 2
My end solution was to get the ext.rte.php from the full release and add the missing function from the old dev preview version of ext.rte.php
So i added
// --------------------------------------------------------------------
/**
* Add RTE JS to the Publish/Edit page
*
* @param array $results The row_array for the entry
* @return array Modified result array
*/
function publish_form_entry_data($results)
{
// Build toolset JS and include CP-only tools
// ee()->javascript->output(
// ee()->rte_lib->build_js(0, '.WysiHat-field', NULL, TRUE)
// );
return $results;
}
// --------------------------------------------------------------------To the full release ext.rte.php
Cheers again, keeping in mind my limited knowledge on the innner workings of your Rte, is this suitable?
Cheers
Hi DigitalDoctors,
Sorry for the delay, we don’t look at the dev preview forum much when we’re outside of dev preview.
Did you run the updater again when you upgraded from beta to 2.7? It should have deleted the publish_form_entry_data hook from the database. We got rid of the hook because it wasn’t being used anymore, and it was causing problems with other add-ons using that hook because it wasn’t returning extensions->last_call like it should, so we just removed the method and deleted the hook from the extensions table. I would recommend doing that instead in case in causes trouble with an add-on you have. Just look in your exp_extensions table and delete the row where the RTE has publish_form_entry_data registered.
Kevin
Thanks Kevin (No worries, Fully understand re:delay), that was it so I can now get rid of my dummy method.
Just if your curious I assume why it didn’t work was becuase since I was on the latest dev preview RTE’s version was already 1.0.1 so when the RTE updater ran it compared the version and checked if the current was less than the current version which of course it wasn’t, it was equal.
This was an edge case problem so appreciate your time coming back to this forum.
Cheers
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.