• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Fatal error: Call to undefined function _()

Started by x5000x,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

x5000xTopic starter

Hello,

Got following errors when i try to edit profile.
Fatal error: Call to undefined function _() in /home/xxxxxxx/public_html/tpl/main/profile.php on line 50

PhpVibe 3.4
php 5.4.24

Thanks!
  •  

PHPVibe A.

Add this to the bottom of lib/functions.php

function _($txt){
return _lang($txt);
}

before the last ?>

It's updated in final, one of the developers was to familiar with wordpress :)

_( is a shortcode for gettext , we used to have this before http://ro1.php.net/_

x5000xTopic starter

Hello Mr. Alexander,

Thank you for quick response.

When i do this i get following errors on main page:

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/lib/functions.php:1) in /home/xxxxxxx/public_html/lib/functions.user.php on line 270


Then i get following error when i try to login:
Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/xxxxxxx/public_html/lib/functions.user.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/lib/functions.php:1) in /home/xxxxxxx/public_html/lib/functions.user.php on line 270

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/lib/functions.php:1) in /home/xxxxxx/public_html/lib/functions.php on line 21


Any suggestion is welcomed.
Thank you in advance,
  •  

PHPVibe A.

What editor have you used? Please use a non-automatic conversion one, we use notepad++ , it's free and we recommend it.
Check line 1 of lib/functions.php and see if it has an empty space, also last line, this may be causing it.

x5000xTopic starter

Mr. Alexander,

You were right. I was using just regular notepad, once downloaded installed notepad++ used to edit file then uploaded problem solved. Also original problem was solved as well.

Thank you again for great work and quick response.
  •  

Similar topics (7)