Agon, for the first 2 errors, you just forgot the ';' at the end of debugging lines.<br><br>Also, it is useful to have the Devel module installed (<a href="http://drupal.org/project/devel">http://drupal.org/project/devel</a>) and use dsm() instead of drupal_set_message(), as it prints arrays in a very pleasant browseable interface (no need for print_r)<br>
<br><div class="gmail_quote">On Sun, Aug 21, 2011 at 8:20 AM, Agon S. Buchholz <span dir="ltr"><<a href="mailto:asb@kefk.org">asb@kefk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Progga wrote:<br>
<br>
> Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))"<br>
> from inside the drupal_set_title() function at "includes/path.inc,<br>
> line 206".<br>
<br>
</div>Thanks for your patience, but I had no luck with this either.<br>
<br>
<br>
function drupal_get_title() {<br>
$title = drupal_set_title();<br>
<div class="im"> drupal_set_message(print_r(debug_backtrace(), TRUE))<br>
<br>
</div> // during a bootstrap, menu.inc is not included and thus we cannot<br>
provide a title<br>
if (!isset($title) && function_exists('menu_get_active_title')) {<br>
$title = check_plain(menu_get_active_title());<br>
}<br>
<br>
return $title;<br>
}<br>
<br>
and<br>
<br>
function drupal_get_title() {<br>
$title = drupal_set_title();<br>
<br>
// during a bootstrap, menu.inc is not included and thus we cannot<br>
provide a title<br>
if (!isset($title) && function_exists('menu_get_active_title')) {<br>
$title = check_plain(menu_get_active_title());<br>
<div class="im"> }<br>
drupal_set_message(print_r(debug_backtrace(), TRUE))<br>
</div> return $title;<br>
}<br>
<br>
result in:<br>
<br>
Parse error: syntax error, unexpected T_IF in<br>
/var/www/drupal/includes/path.inc on line 235<br>
<br>
respctively<br>
<br>
Parse error: syntax error, unexpected T_RETURN in<br>
/var/www/drupal/includes/path.inc on line 239<br>
<br>
<br>
(is this even "inside the function"?)<br>
<br>
<br>
function drupal_set_title($title = NULL) {<br>
<div class="im">drupal_set_message(print_r(debug_backtrace(), TRUE))<br>
</div> static $stored_title;<br>
<br>
results in<br>
<br>
Parse error: syntax error, unexpected T_STATIC in<br>
/var/www/drupal/includes/path.inc on line 253<br>
<br>
<br>
function drupal_get_title() {<br>
$title =<br>
drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE)));<br>
<br>
// during a bootstrap, menu.inc is not included and thus we cannot<br>
provide a title<br>
if (!isset($title) && function_exists('menu_get_active_title')) {<br>
$title = check_plain(menu_get_active_title());<br>
}<br>
<br>
results in lots of debug output all over the first page I', loading, and<br>
then in<br>
<br>
Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to<br>
allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line 1879<br>
<br>
(current PHP memory limit: 200M)<br>
<br>
<br>
Sorry, this is too much guesswork as I don't understand enough about PHP<br>
syntax.<br>
<br>
E.g. "inside the function"<br>
drupal_set_title(check_plain($gallery->name)); probably means somewhere<br>
inside the first (), or second (), either before, or after<br>
"check_plain", or either before, or after "$gallery->name".<br>
<div><div></div><div class="h5"><br>
Greetings, -asb<br>
<br>
_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Franz <br><br><a href="http://ciudaddelpico.com" target="_blank">http://ciudaddelpico.com</a><br><br>Sent from my laptop<br>