eworkers / K2ForJ4

GNU General Public License v2.0
11 stars 6 forks source link

0 - call_user_func_array() #31

Closed cmirnow closed 1 year ago

cmirnow commented 1 year ago

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.

cmirnow commented 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

eworkers commented 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

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

cmirnow commented 1 year ago

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.

eworkers commented 1 year ago

how about the last push?

cmirnow commented 1 year ago

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.

eworkers commented 1 year ago

Take a look.

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.

cmirnow commented 1 year ago

Done. Here's probably... http://cq71437.tw1.ru/index.php/component/k2/itemlist/tag/fourthtag http://cq71437.tw1.ru/index.php/component/k2/itemlist/tag/thirdtag

eworkers commented 1 year ago

we have a new push, can you please test it? hopefully we can close caching issues for good this time!

cmirnow commented 1 year ago

This fix seems to solve all problems. Closed.