Fatal error: call to undefined function_() in

Permalink
Hi All!

Ive been busy working with my first C5 site. Its all been going smoothly, almost finished!

Then..... I've gone to edit a block (the default block on the Press Room page, that lists recent press releases).

Ive Aliased this block to the home page. All was working perfectly for about a week.

Ive gone back to edit that block, and I get the following Error:

Fatal error: call to undefined function_() in
/public_html/concrete/tools/edit_blick_popup.php on line 22

Line (20, 21 ) & 22 reads:

$bp = new Permissions($b);
if (!$bp->canWrite()) {
die(_("Access Denied."));

Since first creating/aliasing that block. I changed the site to advanced permissions. Previous to changing to advanced, I had not made any permissions changes. I have however since made changes for one new usergroup only.

This is the only block that I get the error on. The rest of the entire site's blocks are perfectly editable.

Any insight as to whats going on would be very much appreciated!

 
agedman replied on at Permalink Reply
agedman
Well there are two things going on, I think. The reason for the fatal error is that the php_gettext extension isn't installed on your server -- the _() function is an alias for gettext(). But I don't understand advanced permissions well enough to help with the main issue of why you've lost permission to edit the block after turning on advanced permissions and creating an alias. I'll see if I can reproduce this, though.
agedman replied on at Permalink Reply
agedman
I have advanced permissions turned on and haven't been able to reproduce this. Could you explain in more detail how you aliased the block? For example, did you copy/create alias into the global scrapbook, then paste from the global scrapbook to your home page?
Meje replied on at Permalink Reply
Thanks for your reply!

For example, did you copy/create alias into the global scrapbook, then paste from the global scrapbook to your home page?

Yes this is exactly what I did.

Strange thing is its only this block that I cant edit. If I create a new block, with the same settings there are no issues....except that I cant get the press release date to show up (as per my other post herehttp://www.concrete5.org/community/forums/usage/press-release-for-r... ).

If I can manage to get the page list working for the press releases - including the date showing, then Ill just delete this block, as it seems to be an isolated error...?

Ive been playing around with tis for a couple of days now, and think that just deleting the problem block may be the way to go....
agedman replied on at Permalink Reply
agedman
You're probably right, but if it won't let you edit it, I wonder if it will let you delete... I guess you've already tried clicking on the block in edit mode and selecting 'permissions', right? Administrators should have read, write and delete permissions...
Meje replied on at Permalink Reply
Your right..I haven't actually tried deleting it yet... Only one way to find out!

Yes, checked permissions, can edit those no problem and defiantly have all permissions for admin ticked.

OK, just tried deleting and can do that no problems :)