Download & Extend

Call to undefined function page_title_page_get_title()

Project:Page Title
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

After install, creating a new site in "sites" folder will generate the " page_title_page_get_title()" error, the front page is unavailable to setup.
I think the error is cused by the fact that the module is not enabled (yet), so the function is not available.
My dirty fix was to put

<?php
if (function_exists('print page_title_page_get_title()')) { print page_title_page_get_title();}else {print $head_title;}
?>

in the tpl.php theme file.
I did not tried if the bug appear in the "template.php" instalation.

I am not a php programmer, so probably this fix is not the best option, I hope you'll find a better one.

Comments

#1

Title:New sites "Call to undefined function page_title_page_get_title()" error» New sites "Call to undefined function page_title_page_get_title()" error -Oops, the right code...

Ooops, the right code is :

<?php
if (function_exists('page_title_page_get_title')) { print page_title_page_get_title();}else {print $head_title;}
?>

Now tested also :P
Mea clupa
TinTin

#2

Title:New sites "Call to undefined function page_title_page_get_title()" error -Oops, the right code...» Call to undefined function page_title_page_get_title()
Status:active» closed (won't fix)

Hehe - always the way - the error is found soon after posting about it :-)

#3

Hehe - always the way - the error is found soon after posting about it :-)