Closed cmirnow closed 1 year ago
I installed the latest revision of K2ForJ4 on Joomla 3.10.11, problem solved (probably). Then I upgraded to Joomla 4.2.5, and it's the same (php 8.0, 8.1):
0 call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "k2_item_2_second_tag_itemlist_" not found or invalid function name
http://cq71437.tw1.ru/index.php/component/k2/itemlist/tag/tag
I installed the latest revision of K2ForJ4 on Joomla 3.10.11, problem solved (probably). Then I upgraded to Joomla 4.2.5, and it's the same (php 8.0, 8.1):
0 call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "k2_item_2_second_tag_itemlist_" not found or invalid function name
http://cq71437.tw1.ru/index.php/component/k2/itemlist/tag/tag
did you clear the cache after upgrade? Cache containers for J3 and J4 were deferred by structure and name, old container cache storage might be the problem, so please clear the cache and try again and report here in afterwards
did you clear the cache after upgrade? Can you please clear the cache and try again
I just did: All cache group(s) have been cleared. It helps, but only for a few seconds. Until a new cache. Take a look.
how about the last push?
No. Unfortunately, I was able to reproduce the error.
0 call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "k2_item_2_second_tag_itemlist_Itemid_101_" not found or invalid function name
Of course, the cache was cleared.
bare with us @cmirnow , let's assume that in the example above you didn't have a tag named 'tag', will the problem remain? in other words can you remove the tag called tag or renamed to something else, add as many new tags as you want, clear the cache and try again? Just to help us understand the problem better in order to solve.
we have a new push, can you please test it? hopefully we can close caching issues for good this time!
This fix seems to solve all problems. Closed.
After upgrading to Joomla 4 (php 8.0, K2ForJ4) this bug occurs as follows:
0 - call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "k2_item431react-componentwillmount-componentdidmounttagitemlist" not found or invalid function name
Note. "react-componentwillmount-componentdidmount" - the alias of one of the articles of the tag link.