Did the update to this new version but after that all link are invisible. I can no longer edit or view any links. When I put back the old version, everything works fine again.
Errors I get with this new version:
warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'theme_link_formatter_default' not found or invalid function name in .../includes/theme.inc on line 669.

CommentFileSizeAuthor
#11 link-requireneeded-1920004-11.patch216 bytesmarcdecaluwe

Comments

mu5a5hi’s picture

Same here.. My links were gone. I checked my views and the field was gone from the selected fields. Reverted and it's back to normal.

jcfiala’s picture

Did you clear the cache? Generally if you have a problem after doing an update, you should clear the site cache.

mu5a5hi’s picture

I don't know about Marc, but in my case cache clearing didn't have any effect.

I'm going to try installing on a dev site today and see if i can figure out any more 'variables' to the issue.

Steven Brown’s picture

Subcribing I'm experiencing this as well.

drakythe’s picture

I am also getting this issue. I have cleared cache. Nothing seems to solve the issue. I removed the link field from my View and the issue went away.

marcdecaluwe’s picture

Cache clearing doesn't help - i'll take a closer look at what can cause this

mu5a5hi’s picture

Did the test on dev version of site. Same results. Caches cleared.

reports/deblog page says this:
substr() expects parameter 3 to be long, string given in /var/www/eng.vt.edu/sites/all/modules/link/link.inc on line 111.

marcdecaluwe’s picture

If I put the following line in the file link.module

require_once 'link.theme.inc';

the problem is solved.

They dit put some functions in a separate file but forgot to include it.

drakythe’s picture

Title: update 6.x-2.10 problem » call_user_func_array() expects parameter 1 to be a valid callback, function 'theme_link_formatter_default' not found
Version: 6.x-2.10 » 6.x-2.x-dev

#7 That seems to be a different error, might require a different thread.

I've gone ahead and renamed the issue to be more specific than a catchall thread.

#8 care to post a patch?

marcdecaluwe’s picture

Ok - I'll post a patch on Monday.

marcdecaluwe’s picture

StatusFileSize
new216 bytes

Patch for this issue

marcdecaluwe’s picture

Patch uploaded under comment 11

byronveale’s picture

Tried the 6.x-2.x-dev version, problem seems to be fixed.

Perhaps patch from #11 above was implemented?

See also this issue:

http://drupal.org/node/1924904

Thanks to all involved!

byronveale’s picture

One more note: checking another site, it was using the "fixed" dev version of link, but was still getting this php error, and the link fields were not visible. At first, I thought the problem still remained; then I cleared all caches. No more problem...

dr.user’s picture

Status: Needs review » Active

[deleted]

drakythe’s picture

Status: Active » Needs review

Per #13 I am marking this as needs review since it seems to be fixed.

dr.user no need to "bump" topics, maintainers will get to them when they have a chance. Also please try the dev release as it seems to be patched, be sure to run update.php and clear cache to see if your problem is resolved. Also, if you need to subscribe to the topic these days there is a subscribe button in the upper right hand corner of the initial issue post.

Status: Active » Needs review
jcfiala’s picture

Issue summary: View changes

So, here's the thing. hook_theme properly has a 'file' attribute for each theme function as is specified in https://api.drupal.org/api/drupal/developer%21hooks%21core.php/function/... - as per the documentation, and from all of my experience, that means that the link.theme.inc should be automatically included when any of these theme functions are called... which is why clearing the cache should fix this. The whole point of having them in a different file is so that theme functions don't have to be included on every pageload even if they're not used. This is the same thing that's used in the node module for the node add page, for goodness sakes!

If the theme layer isn't including files properly on your sites, then there's a bigger problem than just my module.

jcfiala’s picture

And to follow up with that, the theme functions have been in link.theme.inc for over three years now - this isn't a new change.

So.. what would cause this? I don't know.

damienmckenna’s picture

Status: Needs review » Closed (won't fix)

Thank you all for your efforts, but I'm sorry to say that the D6 version is no longer supported.