From lukas2k7 at mail.ru Sun Aug 14 03:01:39 2011 From: lukas2k7 at mail.ru (=?UTF-8?B?QW50b24gTHVraWNoam93?=) Date: Sun, 14 Aug 2011 07:01:39 +0400 Subject: [themes] =?utf-8?q?How_do_I_remove_a_theme_from_drupal?= Message-ID: How do I remove a theme from drupal? -- itfreelancer.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110814/cd88fb6c/attachment.html From wdlists at gmail.com Sun Aug 14 03:05:14 2011 From: wdlists at gmail.com (Walt Daniels) Date: Sat, 13 Aug 2011 23:05:14 -0400 Subject: [themes] How do I remove a theme from drupal In-Reply-To: References: Message-ID: Switch to another theme and if you really aren't going to use that theme you can remove it from the /sites/all/themes directory. On Sat, Aug 13, 2011 at 11:01 PM, Anton Lukichjow wrote: > How do I remove a theme from drupal? > > > -- > itfreelancer.ru > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110813/44f5f7d2/attachment.html From lukas2k7 at mail.ru Sun Aug 14 03:56:23 2011 From: lukas2k7 at mail.ru (=?UTF-8?B?QW50b24gTHVraWNoam93?=) Date: Sun, 14 Aug 2011 07:56:23 +0400 Subject: [themes] =?utf-8?q?How_do_I_remove_a_theme_from_drupal?= Message-ID: No files in a directory /sites/all/themes, the theme is displayed in Admin panel. __ itfreelancer.ru From fnikola at cognisync.com Sun Aug 14 04:13:00 2011 From: fnikola at cognisync.com (Frank Nikola) Date: Sun, 14 Aug 2011 00:13:00 -0400 Subject: [themes] How do I remove a theme from drupal In-Reply-To: References: Message-ID: <0187BD5E-0225-4BF8-AEE9-097A71B4FA83@cognisync.com> Try refreshing the cache. Sent from my iPhone On Aug 13, 2011, at 11:56 PM, Anton Lukichjow wrote: > No files in a directory /sites/all/themes, the theme is displayed in Admin panel. > > __ > itfreelancer.ru > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From bchoc at t4tcolorado.org Sun Aug 14 06:50:05 2011 From: bchoc at t4tcolorado.org (Brian Choc) Date: Sat, 13 Aug 2011 23:50:05 -0700 Subject: [themes] How do I remove a theme from drupal In-Reply-To: <0187BD5E-0225-4BF8-AEE9-097A71B4FA83@cognisync.com> References: <0187BD5E-0225-4BF8-AEE9-097A71B4FA83@cognisync.com> Message-ID: It may also be in a sites/[site]/themes folder or [erroneously] in the /themes folder. On Sat, Aug 13, 2011 at 9:13 PM, Frank Nikola wrote: > Try refreshing the cache. > > Sent from my iPhone > > On Aug 13, 2011, at 11:56 PM, Anton Lukichjow wrote: > > > No files in a directory /sites/all/themes, the theme is displayed in > Admin panel. > > > > __ > > itfreelancer.ru > > _______________________________________________ > > themes mailing list > > themes at drupal.org > > http://lists.drupal.org/mailman/listinfo/themes > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -- Brian Choc Technology Manager Teaming for Technology Colorado 2505 18th St. Denver, CO 80211 P: 303.561.2377, F: 303.455.6462 http://www.t4tcolorado.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110813/959b1665/attachment.html From bratsaki at gmail.com Sun Aug 14 07:32:44 2011 From: bratsaki at gmail.com (George Bratsos) Date: Sun, 14 Aug 2011 10:32:44 +0300 Subject: [themes] Theme Regions Message-ID: I want to ask you how can i easily add more regions to Barlow theme or any theme at a drupal site. also i want to ask you if is there a program that i can design a theme and then extract it as a drupal theme :) thanks in advance :) -- George Bratsos Etern4L @Freenode http://en.opensuse.org/User:Etern4L http://amb.opensuse.gr http://own.opensuse.gr http://www.linuxteam.cs.teilar.gr http://etern4l.wordpress.com From sivaji at knackforge.com Sun Aug 14 07:40:47 2011 From: sivaji at knackforge.com (Sivaji J G) Date: Sun, 14 Aug 2011 13:10:47 +0530 Subject: [themes] Theme Regions In-Reply-To: References: Message-ID: On Sun, Aug 14, 2011 at 1:02 PM, George Bratsos wrote: > > I want to ask you how can i easily add more regions to Barlow theme or > any theme at a drupal site. See http://drupal.org/node/171205#regions and http://drupal.org/node/171224 > also i want to ask you if is there a program that i can design a theme > and then extract it as a drupal theme :) http://www.drupalgardens.com/ -- Cheers Sivaji | sivaji at knackforge.com KnackForge Soft Solutions Pvt Ltd Mobile : (+91) 9941 571 690 From je.americana at gmail.com Mon Aug 15 16:25:14 2011 From: je.americana at gmail.com (Jefferson Santana) Date: Mon, 15 Aug 2011 13:25:14 -0300 Subject: [themes] How do I remove a theme from drupal In-Reply-To: References: <0187BD5E-0225-4BF8-AEE9-097A71B4FA83@cognisync.com> Message-ID: You have an paste "themes" in root Drupal, that too have themes. 2011/8/14 Brian Choc > It may also be in a sites/[site]/themes folder or [erroneously] in the > /themes folder. > > > On Sat, Aug 13, 2011 at 9:13 PM, Frank Nikola wrote: > >> Try refreshing the cache. >> >> Sent from my iPhone >> >> On Aug 13, 2011, at 11:56 PM, Anton Lukichjow wrote: >> >> > No files in a directory /sites/all/themes, the theme is displayed in >> Admin panel. >> > >> > __ >> > itfreelancer.ru >> > _______________________________________________ >> > themes mailing list >> > themes at drupal.org >> > http://lists.drupal.org/mailman/listinfo/themes >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes >> > > > > -- > Brian Choc > Technology Manager > > Teaming for Technology Colorado > 2505 18th St. Denver, CO 80211 > P: 303.561.2377, F: 303.455.6462 > http://www.t4tcolorado.org > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -- Att. *Jefferson Santana* je.americana at gmail.com Santa B?rbara d'Oeste - SP - Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110815/5270b60a/attachment.html From rexdeveloper at gmail.com Mon Aug 15 19:21:56 2011 From: rexdeveloper at gmail.com (sahaya rex) Date: Tue, 16 Aug 2011 00:51:56 +0530 Subject: [themes] How do I remove a theme from drupal In-Reply-To: References: Message-ID: View the page source by right clicking on the page, and search for themes, u will get it. On Sun, Aug 14, 2011 at 8:31 AM, Anton Lukichjow wrote: > How do I remove a theme from drupal? > > > -- > itfreelancer.ru > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110816/eb6c8031/attachment.html From nat at openflows.com Tue Aug 16 19:07:21 2011 From: nat at openflows.com (Nat Meysenburg) Date: Tue, 16 Aug 2011 15:07:21 -0400 Subject: [themes] How do I remove a theme from drupal In-Reply-To: References: Message-ID: <4E4ABFE9.2020509@openflows.com> On 08/13/2011 11:56 PM, Anton Lukichjow wrote: > No files in a directory /sites/all/themes, the theme is displayed in Admin panel. It may depend on what theme you are trying to remove. Are you speaking of one of the core themes (eg: Bartik and Garland)? They would certainly not be in the "sites/all/themes", "sites/default/themes" or "sites/SITEURL/theme" and would definitely still show up in the admin options, because they are core themes. To remove them, you would have to remove the files for the core themes that you don't want -- or less destructively, rename their .info files to .info.off (or some other fake file extension that isn't .info). This goes against one of the top rules of Drupal best practices; "don't hack core." If you do remove those themes, they will no longer show up on the admin page. However, they will come back with the next site update, since they are part of the core package. If you are committed to doing this, be aware that you gain little more than cleaning up a page nobody looks at after site development. Unless you are attempting to repackage/fork Drupal, all this approach really accomplishes in the end is ensuring that you do more work for every core security update. I do not recommend this course of action, but have had clients do this on there own, and it worked out okay for them. ~~nat From asb at kefk.org Sat Aug 20 03:31:54 2011 From: asb at kefk.org (Agon S. Buchholz) Date: Sat, 20 Aug 2011 05:31:54 +0200 Subject: [themes] All page titles identical Message-ID: <4E4F2AAA.3040007@kefk.org> Hi, I'm currently develping a custom theme for a mid-sized Drupal site (6.22) and ran into a bizarre problem: Suddenly all page titles are rendered with the exact same string, but not (never) with the actual page title. The string is the localized version of "Image galleries". This behaviour affects as well nodes and taxonomy term pages as views, panel pages and even administrative pages, altogether around 50,000 pages. The string appears as well in the node title (

... ... ), but *not* in the meta tags (). The theme is a custom sub-theme of Fusion, so I checked against the (unaltered) core theme 'Garland', and against the unaltered 'Fusion core' base the, which both show exactly the same behaviour; so this seems not to be an issue of my customized theme. Also I checked the node table of the site's database which still has the correct node titles in the "title" colum. I am using the 'page_title' module, so I suspected an amok behaviour and disabled the module; this didn't change the malfunction, so 'page_title' is probably innocent. Additionally I created a block with Views and pulled the node respectively taxonomy term title via an argument into the block; these node respectively term titles *do* render correctly, so there seems to be no obvious issue with the database (which I checked as well with the command line utility 'mysqlcheck'). Of course I cleared the theme registry and all other caches multiple times (through 'admin_menu', and 'drush'). This had no effect as well. I can edit the localized string at ./admin/build/translate/search (in my case it's /admin/build/translate/edit/31625), and after saving, it immediately renders throughout the whole site as "generic" page title. It's nice to know where the string comes from, but this doesn't help much; it is used by the 'image' module, and this module is clearly not designed for this kind of site-wide override. However, to make sure I disabled the modules 'image', 'image_attach', 'image_gallery', and 'image_import' and was most surprised to learn the the page titles went back to their normal states. Now I am really confused and still don't believe that 'image' module can be the root cause. I am totally out of ideas what could cause this kind of behaviour; the 'page_title' module is the only module I am aware of that could globally alter the tag, but I don't have the faintest idea what could modify the <h1 class="title"> tag across themes (which excludes theme overrides in *one* theme as the possible root cause). Any ideas or suggestions what might actually go wrong here? Thanks! -asb Image module issue for this: #1254778 From proggaprogga at gmail.com Sat Aug 20 08:26:45 2011 From: proggaprogga at gmail.com (Progga) Date: Sat, 20 Aug 2011 09:26:45 +0100 Subject: [themes] All page titles identical In-Reply-To: <4E4F2AAA.3040007@kefk.org> References: <4E4F2AAA.3040007@kefk.org> Message-ID: <20110820082645.GA2518@localhost> On Sat, Aug 20, 2011 at 05:31:54AM +0200, Agon S. Buchholz wrote: > Any ideas or suggestions what might actually go wrong here? You seem to have done everything that can be done to spot the problem :-) The drupal_set_title() [0] function is usually called to set the title of a page. The only place where I can see it being called among the Image family of modules is inside the image_gallery_page() [1] function of the image_gallery module. This function is actually a menu callback for the "image" path. So any path like "http://foo.com/image", "http://foo.com/image/foo/bar", etc. should trigger this function. But you are seeing the title everywhere. So it could be that some other function is calling image_gallery_page() as well. You can debug around both the drupal_set_title() and image_gallery_page() to see who is really calling them. Thanks, Adnan [0] http://api.drupal.org/api/drupal/includes--path.inc/function/drupal_set_title/6 [1] http://drupalcode.org/project/image.git/blob/d900d7f90711c5f00b6d6b0a388559d03c87b28a:/contrib/image_gallery/image_gallery.pages.inc On Sat, Aug 20, 2011 at 05:31:54AM +0200, Agon S. Buchholz wrote: > Hi, > > I'm currently develping a custom theme for a mid-sized Drupal site > (6.22) and ran into a bizarre problem: Suddenly all page titles are > rendered with the exact same string, but not (never) with the actual > page title. The string is the localized version of "Image galleries". > > This behaviour affects as well nodes and taxonomy term pages as views, > panel pages and even administrative pages, altogether around 50,000 > pages. The string appears as well in the node title (<h1 class="title"> > ... </h1), as in the browser's page title (<title> ... ), but > *not* in the meta tags (). > > The theme is a custom sub-theme of Fusion, so I checked against the > (unaltered) core theme 'Garland', and against the unaltered 'Fusion > core' base the, which both show exactly the same behaviour; so this > seems not to be an issue of my customized theme. > > Also I checked the node table of the site's database which still has the > correct node titles in the "title" colum. I am using the 'page_title' > module, so I suspected an amok behaviour and disabled the module; this > didn't change the malfunction, so 'page_title' is probably innocent. > Additionally I created a block with Views and pulled the node > respectively taxonomy term title via an argument into the block; these > node respectively term titles *do* render correctly, so there seems to > be no obvious issue with the database (which I checked as well with the > command line utility 'mysqlcheck'). > > Of course I cleared the theme registry and all other caches multiple > times (through 'admin_menu', and 'drush'). This had no effect as well. > > I can edit the localized string at ./admin/build/translate/search (in my > case it's /admin/build/translate/edit/31625), and after saving, it > immediately renders throughout the whole site as "generic" page title. > It's nice to know where the string comes from, but this doesn't help > much; it is used by the 'image' module, and this module is clearly not > designed for this kind of site-wide override. However, to make sure I > disabled the modules 'image', 'image_attach', 'image_gallery', and > 'image_import' and was most surprised to learn the the page titles went > back to their normal states. Now I am really confused and still don't > believe that 'image' module can be the root cause. > > I am totally out of ideas what could cause this kind of behaviour; the > 'page_title' module is the only module I am aware of that could globally > alter the tag, but I don't have the faintest idea what could > modify the <h1 class="title"> tag across themes (which excludes theme > overrides in *one* theme as the possible root cause). > > Any ideas or suggestions what might actually go wrong here? > > Thanks! > -asb > > Image module issue for this: #1254778 > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From asb at kefk.org Sat Aug 20 13:41:24 2011 From: asb at kefk.org (Agon S. Buchholz) Date: Sat, 20 Aug 2011 15:41:24 +0200 Subject: [themes] All page titles identical In-Reply-To: <20110820082645.GA2518@localhost> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> Message-ID: <4E4FB984.5030106@kefk.org> Hi Adnan, > [...] This function is actually a menu callback for the "image" path. > So any path like "http://foo.com/image", > "http://foo.com/image/foo/bar", etc. should trigger this function. > But you are seeing the title everywhere. So it could be that some > other function is calling image_gallery_page() as well. You can > debug around both the drupal_set_title() and image_gallery_page() to > see who is really calling them. Thanks for this pointer; drupal_set_title() might explain what is going on behind the scenes, indeed. However, as it seems, this has nothing to do with the theming layer and would require serious debugging skills which are far beyond my capabilities, so there's not much I can do against it. Thanks again for the pointer! At least I wasn't attacked by black magic ;) Greetings, -asb From proggaprogga at gmail.com Sat Aug 20 15:00:09 2011 From: proggaprogga at gmail.com (Progga) Date: Sat, 20 Aug 2011 16:00:09 +0100 Subject: [themes] All page titles identical In-Reply-To: <4E4FB984.5030106@kefk.org> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> Message-ID: <20110820150009.GA2639@localhost> On Sat, Aug 20, 2011 at 03:41:24PM +0200, Agon S. Buchholz wrote: > > However, as it seems, this has nothing to do with the theming layer and > would require serious debugging skills which are far beyond my > capabilities, so there's not much I can do against it. I understand your problem. If you are not shy about writing some PHP code, then you can call the debug_backtrace() function [0] from inside drupal_set_title() to find out who is calling whom. Something like the following will do: ... drupal_set_title(....); drupal_set_message(print_r(debug_backtrace(), TRUE)); ... Thanks, Adnan [0] http://uk2.php.net/debug_backtrace On Sat, Aug 20, 2011 at 03:41:24PM +0200, Agon S. Buchholz wrote: > Hi Adnan, > > > [...] This function is actually a menu callback for the "image" path. > > So any path like "http://foo.com/image", > > "http://foo.com/image/foo/bar", etc. should trigger this function. > > But you are seeing the title everywhere. So it could be that some > > other function is calling image_gallery_page() as well. You can > > debug around both the drupal_set_title() and image_gallery_page() to > > see who is really calling them. > > Thanks for this pointer; drupal_set_title() might explain what is going > on behind the scenes, indeed. > > However, as it seems, this has nothing to do with the theming layer and > would require serious debugging skills which are far beyond my > capabilities, so there's not much I can do against it. > > Thanks again for the pointer! At least I wasn't attacked by black magic ;) > > Greetings, -asb > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From asb at kefk.org Sat Aug 20 17:33:29 2011 From: asb at kefk.org (Agon S. Buchholz) Date: Sat, 20 Aug 2011 19:33:29 +0200 Subject: [themes] All page titles identical In-Reply-To: <20110820150009.GA2639@localhost> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> Message-ID: <4E4FEFE9.70800@kefk.org> Progga wrote: > If you are not shy about writing some PHP code, then you can call > the debug_backtrace() function [0] from inside drupal_set_title() to > find out who is calling whom. Thanks again. I tried to put this into ./sites/all/modules/image/contrib/image_gallery/image_gallery.pages.inc: ... $breadcrumb[] = l($parent->name, 'image/tid/' . $parent->tid); } drupal_set_title(check_plain($gallery->name)); drupal_set_message(print_r(debug_backtrace(), TRUE)); } ... However this didn't output anything but the normal page. What should I expect? Greetings, -asb From proggaprogga at gmail.com Sun Aug 21 09:58:36 2011 From: proggaprogga at gmail.com (Progga) Date: Sun, 21 Aug 2011 10:58:36 +0100 Subject: [themes] All page titles identical In-Reply-To: <4E4FEFE9.70800@kefk.org> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> Message-ID: <20110821095836.GA2513@localhost> On Sat, Aug 20, 2011 at 07:33:29PM +0200, Agon S. Buchholz wrote: > Thanks again. I tried to put this into > ./sites/all/modules/image/contrib/image_gallery/image_gallery.pages.inc: > > ... > $breadcrumb[] = l($parent->name, 'image/tid/' . $parent->tid); > } > drupal_set_title(check_plain($gallery->name)); > drupal_set_message(print_r(debug_backtrace(), TRUE)); > } > ... > > However this didn't output anything but the normal page. What should I > expect? The sequence of calling functions should be displayed as a normal Drupal message. You can see an example at http://uk2.php.net/debug_backtrace if you scroll down to the "Examples" section. If no output is generated then it could be that the image_gallery_page() function is not called. Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" from inside the drupal_set_title() function at "includes/path.inc, line 206". Thanks, Adnan On Sat, Aug 20, 2011 at 07:33:29PM +0200, Agon S. Buchholz wrote: > Progga wrote: > > > If you are not shy about writing some PHP code, then you can call > > the debug_backtrace() function [0] from inside drupal_set_title() to > > find out who is calling whom. > > Thanks again. I tried to put this into > ./sites/all/modules/image/contrib/image_gallery/image_gallery.pages.inc: > > ... > $breadcrumb[] = l($parent->name, 'image/tid/' . $parent->tid); > } > drupal_set_title(check_plain($gallery->name)); > drupal_set_message(print_r(debug_backtrace(), TRUE)); > } > ... > > However this didn't output anything but the normal page. What should I > expect? > > Greetings, -asb > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From asb at kefk.org Sun Aug 21 11:20:58 2011 From: asb at kefk.org (Agon S. Buchholz) Date: Sun, 21 Aug 2011 13:20:58 +0200 Subject: [themes] All page titles identical In-Reply-To: <20110821095836.GA2513@localhost> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> Message-ID: <4E50EA1A.8010306@kefk.org> Progga wrote: > Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" > from inside the drupal_set_title() function at "includes/path.inc, > line 206". Thanks for your patience, but I had no luck with this either. function drupal_get_title() { $title = drupal_set_title(); drupal_set_message(print_r(debug_backtrace(), TRUE)) // during a bootstrap, menu.inc is not included and thus we cannot provide a title if (!isset($title) && function_exists('menu_get_active_title')) { $title = check_plain(menu_get_active_title()); } return $title; } and function drupal_get_title() { $title = drupal_set_title(); // during a bootstrap, menu.inc is not included and thus we cannot provide a title if (!isset($title) && function_exists('menu_get_active_title')) { $title = check_plain(menu_get_active_title()); } drupal_set_message(print_r(debug_backtrace(), TRUE)) return $title; } result in: Parse error: syntax error, unexpected T_IF in /var/www/drupal/includes/path.inc on line 235 respctively Parse error: syntax error, unexpected T_RETURN in /var/www/drupal/includes/path.inc on line 239 (is this even "inside the function"?) function drupal_set_title($title = NULL) { drupal_set_message(print_r(debug_backtrace(), TRUE)) static $stored_title; results in Parse error: syntax error, unexpected T_STATIC in /var/www/drupal/includes/path.inc on line 253 function drupal_get_title() { $title = drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE))); // during a bootstrap, menu.inc is not included and thus we cannot provide a title if (!isset($title) && function_exists('menu_get_active_title')) { $title = check_plain(menu_get_active_title()); } results in lots of debug output all over the first page I', loading, and then in Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line 1879 (current PHP memory limit: 200M) Sorry, this is too much guesswork as I don't understand enough about PHP syntax. E.g. "inside the function" drupal_set_title(check_plain($gallery->name)); probably means somewhere inside the first (), or second (), either before, or after "check_plain", or either before, or after "$gallery->name". Greetings, -asb From mattyhead at gmail.com Sun Aug 21 11:43:23 2011 From: mattyhead at gmail.com (Matt Murphy) Date: Sun, 21 Aug 2011 07:43:23 -0400 Subject: [themes] All page titles identical In-Reply-To: <4E50EA1A.8010306@kefk.org> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> <4E50EA1A.8010306@kefk.org> Message-ID: <CAMNRscFz1SW9oU79pUccd=bo2WsrommXO0+0BFjWSwqL1yhP6A@mail.gmail.com> Because print_r is a direct output function. You'd need some sort of buffering scheme to grab its output in chunks and assign it to a variable or put it in the database or whatever, once per usage. On Sun, Aug 21, 2011 at 7:20 AM, Agon S. Buchholz <asb at kefk.org> wrote: > Progga wrote: > >> Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" >> from inside the drupal_set_title() function at "includes/path.inc, >> line 206". > > Thanks for your patience, but I had no luck with this either. > > > function drupal_get_title() { > ? $title = drupal_set_title(); > ? drupal_set_message(print_r(debug_backtrace(), TRUE)) > > ? // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > ? if (!isset($title) && function_exists('menu_get_active_title')) { > ? ? $title = check_plain(menu_get_active_title()); > ? } > > ? return $title; > } > > and > > function drupal_get_title() { > ? $title = drupal_set_title(); > > ? // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > ? if (!isset($title) && function_exists('menu_get_active_title')) { > ? ? $title = check_plain(menu_get_active_title()); > ? } > ? drupal_set_message(print_r(debug_backtrace(), TRUE)) > ? return $title; > } > > result in: > > Parse error: syntax error, unexpected T_IF in > /var/www/drupal/includes/path.inc on line 235 > > respctively > > Parse error: syntax error, unexpected T_RETURN in > /var/www/drupal/includes/path.inc on line 239 > > > (is this even "inside the function"?) > > > function drupal_set_title($title = NULL) { > drupal_set_message(print_r(debug_backtrace(), TRUE)) > ? static $stored_title; > > results in > > Parse error: syntax error, unexpected T_STATIC in > /var/www/drupal/includes/path.inc on line 253 > > > function drupal_get_title() { > ? $title = > drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE))); > > ? // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > ? if (!isset($title) && function_exists('menu_get_active_title')) { > ? ? $title = check_plain(menu_get_active_title()); > ? } > > results in lots of debug output all over the first page I', loading, and > then in > > Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to > allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line 1879 > > (current PHP memory limit: 200M) > > > Sorry, this is too much guesswork as I don't understand enough about PHP > syntax. > > E.g. "inside the function" > drupal_set_title(check_plain($gallery->name)); probably means somewhere > inside the first (), or second (), either before, or after > "check_plain", or either before, or after "$gallery->name". > > Greetings, -asb > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > From franz.glauber at gmail.com Sun Aug 21 11:56:20 2011 From: franz.glauber at gmail.com (Franz Glauber) Date: Sun, 21 Aug 2011 08:56:20 -0300 Subject: [themes] All page titles identical In-Reply-To: <CAMNRscFz1SW9oU79pUccd=bo2WsrommXO0+0BFjWSwqL1yhP6A@mail.gmail.com> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> <4E50EA1A.8010306@kefk.org> <CAMNRscFz1SW9oU79pUccd=bo2WsrommXO0+0BFjWSwqL1yhP6A@mail.gmail.com> Message-ID: <CAKBvJvDCDoWst3DYzp=zovZA_NdQdmSdD8oR0cwicxm5+-nP=g@mail.gmail.com> Matt, the second argument in print_r() function tells it to acutally return the string instead of a direct output. On Sun, Aug 21, 2011 at 8:43 AM, Matt Murphy <mattyhead at gmail.com> wrote: > Because print_r is a direct output function. You'd need some sort of > buffering scheme to grab its output in chunks and assign it to a > variable or put it in the database or whatever, once per usage. > > On Sun, Aug 21, 2011 at 7:20 AM, Agon S. Buchholz <asb at kefk.org> wrote: > > Progga wrote: > > > >> Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" > >> from inside the drupal_set_title() function at "includes/path.inc, > >> line 206". > > > > Thanks for your patience, but I had no luck with this either. > > > > > > function drupal_get_title() { > > $title = drupal_set_title(); > > drupal_set_message(print_r(debug_backtrace(), TRUE)) > > > > // during a bootstrap, menu.inc is not included and thus we cannot > > provide a title > > if (!isset($title) && function_exists('menu_get_active_title')) { > > $title = check_plain(menu_get_active_title()); > > } > > > > return $title; > > } > > > > and > > > > function drupal_get_title() { > > $title = drupal_set_title(); > > > > // during a bootstrap, menu.inc is not included and thus we cannot > > provide a title > > if (!isset($title) && function_exists('menu_get_active_title')) { > > $title = check_plain(menu_get_active_title()); > > } > > drupal_set_message(print_r(debug_backtrace(), TRUE)) > > return $title; > > } > > > > result in: > > > > Parse error: syntax error, unexpected T_IF in > > /var/www/drupal/includes/path.inc on line 235 > > > > respctively > > > > Parse error: syntax error, unexpected T_RETURN in > > /var/www/drupal/includes/path.inc on line 239 > > > > > > (is this even "inside the function"?) > > > > > > function drupal_set_title($title = NULL) { > > drupal_set_message(print_r(debug_backtrace(), TRUE)) > > static $stored_title; > > > > results in > > > > Parse error: syntax error, unexpected T_STATIC in > > /var/www/drupal/includes/path.inc on line 253 > > > > > > function drupal_get_title() { > > $title = > > drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE))); > > > > // during a bootstrap, menu.inc is not included and thus we cannot > > provide a title > > if (!isset($title) && function_exists('menu_get_active_title')) { > > $title = check_plain(menu_get_active_title()); > > } > > > > results in lots of debug output all over the first page I', loading, and > > then in > > > > Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to > > allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line > 1879 > > > > (current PHP memory limit: 200M) > > > > > > Sorry, this is too much guesswork as I don't understand enough about PHP > > syntax. > > > > E.g. "inside the function" > > drupal_set_title(check_plain($gallery->name)); probably means somewhere > > inside the first (), or second (), either before, or after > > "check_plain", or either before, or after "$gallery->name". > > > > Greetings, -asb > > > > _______________________________________________ > > themes mailing list > > themes at drupal.org > > http://lists.drupal.org/mailman/listinfo/themes > > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -- Franz http://ciudaddelpico.com Sent from my laptop -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110821/bb9fae69/attachment-0001.html From franz.glauber at gmail.com Sun Aug 21 12:01:04 2011 From: franz.glauber at gmail.com (Franz Glauber) Date: Sun, 21 Aug 2011 09:01:04 -0300 Subject: [themes] All page titles identical In-Reply-To: <4E50EA1A.8010306@kefk.org> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> <4E50EA1A.8010306@kefk.org> Message-ID: <CAKBvJvBuSqZfR45gihsThL+XMXhO3mR4u707n4qbpriczEjY4w@mail.gmail.com> Agon, for the first 2 errors, you just forgot the ';' at the end of debugging lines. Also, it is useful to have the Devel module installed ( http://drupal.org/project/devel) and use dsm() instead of drupal_set_message(), as it prints arrays in a very pleasant browseable interface (no need for print_r) On Sun, Aug 21, 2011 at 8:20 AM, Agon S. Buchholz <asb at kefk.org> wrote: > Progga wrote: > > > Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" > > from inside the drupal_set_title() function at "includes/path.inc, > > line 206". > > Thanks for your patience, but I had no luck with this either. > > > function drupal_get_title() { > $title = drupal_set_title(); > drupal_set_message(print_r(debug_backtrace(), TRUE)) > > // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > if (!isset($title) && function_exists('menu_get_active_title')) { > $title = check_plain(menu_get_active_title()); > } > > return $title; > } > > and > > function drupal_get_title() { > $title = drupal_set_title(); > > // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > if (!isset($title) && function_exists('menu_get_active_title')) { > $title = check_plain(menu_get_active_title()); > } > drupal_set_message(print_r(debug_backtrace(), TRUE)) > return $title; > } > > result in: > > Parse error: syntax error, unexpected T_IF in > /var/www/drupal/includes/path.inc on line 235 > > respctively > > Parse error: syntax error, unexpected T_RETURN in > /var/www/drupal/includes/path.inc on line 239 > > > (is this even "inside the function"?) > > > function drupal_set_title($title = NULL) { > drupal_set_message(print_r(debug_backtrace(), TRUE)) > static $stored_title; > > results in > > Parse error: syntax error, unexpected T_STATIC in > /var/www/drupal/includes/path.inc on line 253 > > > function drupal_get_title() { > $title = > drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE))); > > // during a bootstrap, menu.inc is not included and thus we cannot > provide a title > if (!isset($title) && function_exists('menu_get_active_title')) { > $title = check_plain(menu_get_active_title()); > } > > results in lots of debug output all over the first page I', loading, and > then in > > Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to > allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line 1879 > > (current PHP memory limit: 200M) > > > Sorry, this is too much guesswork as I don't understand enough about PHP > syntax. > > E.g. "inside the function" > drupal_set_title(check_plain($gallery->name)); probably means somewhere > inside the first (), or second (), either before, or after > "check_plain", or either before, or after "$gallery->name". > > Greetings, -asb > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -- Franz http://ciudaddelpico.com Sent from my laptop -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20110821/b91d3ce3/attachment.html From mattyhead at gmail.com Sun Aug 21 12:03:13 2011 From: mattyhead at gmail.com (Matt Murphy) Date: Sun, 21 Aug 2011 08:03:13 -0400 Subject: [themes] All page titles identical In-Reply-To: <CAKBvJvDCDoWst3DYzp=zovZA_NdQdmSdD8oR0cwicxm5+-nP=g@mail.gmail.com> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> <4E50EA1A.8010306@kefk.org> <CAMNRscFz1SW9oU79pUccd=bo2WsrommXO0+0BFjWSwqL1yhP6A@mail.gmail.com> <CAKBvJvDCDoWst3DYzp=zovZA_NdQdmSdD8oR0cwicxm5+-nP=g@mail.gmail.com> Message-ID: <CAMNRscGPtvDqUFv-uHpScNCchwUUF5YwjcqBHgfrhXQnQ_DyAg@mail.gmail.com> Ah! Apologies. On Sun, Aug 21, 2011 at 7:56 AM, Franz Glauber <franz.glauber at gmail.com> wrote: > Matt, the second argument in print_r() function tells it to acutally return > the string instead of a direct output. > > On Sun, Aug 21, 2011 at 8:43 AM, Matt Murphy <mattyhead at gmail.com> wrote: >> >> Because print_r is a direct output function. ?You'd need some sort of >> buffering scheme to grab its output in chunks and assign it to a >> variable or put it in the database or whatever, once per usage. >> >> On Sun, Aug 21, 2011 at 7:20 AM, Agon S. Buchholz <asb at kefk.org> wrote: >> > Progga wrote: >> > >> >> Try calling "drupal_set_message(print_r(debug_backtrace(), TRUE))" >> >> from inside the drupal_set_title() function at "includes/path.inc, >> >> line 206". >> > >> > Thanks for your patience, but I had no luck with this either. >> > >> > >> > function drupal_get_title() { >> > ? $title = drupal_set_title(); >> > ? drupal_set_message(print_r(debug_backtrace(), TRUE)) >> > >> > ? // during a bootstrap, menu.inc is not included and thus we cannot >> > provide a title >> > ? if (!isset($title) && function_exists('menu_get_active_title')) { >> > ? ? $title = check_plain(menu_get_active_title()); >> > ? } >> > >> > ? return $title; >> > } >> > >> > and >> > >> > function drupal_get_title() { >> > ? $title = drupal_set_title(); >> > >> > ? // during a bootstrap, menu.inc is not included and thus we cannot >> > provide a title >> > ? if (!isset($title) && function_exists('menu_get_active_title')) { >> > ? ? $title = check_plain(menu_get_active_title()); >> > ? } >> > ? drupal_set_message(print_r(debug_backtrace(), TRUE)) >> > ? return $title; >> > } >> > >> > result in: >> > >> > Parse error: syntax error, unexpected T_IF in >> > /var/www/drupal/includes/path.inc on line 235 >> > >> > respctively >> > >> > Parse error: syntax error, unexpected T_RETURN in >> > /var/www/drupal/includes/path.inc on line 239 >> > >> > >> > (is this even "inside the function"?) >> > >> > >> > function drupal_set_title($title = NULL) { >> > drupal_set_message(print_r(debug_backtrace(), TRUE)) >> > ? static $stored_title; >> > >> > results in >> > >> > Parse error: syntax error, unexpected T_STATIC in >> > /var/www/drupal/includes/path.inc on line 253 >> > >> > >> > function drupal_get_title() { >> > ? $title = >> > drupal_set_title(drupal_set_message(print_r(debug_backtrace(), TRUE))); >> > >> > ? // during a bootstrap, menu.inc is not included and thus we cannot >> > provide a title >> > ? if (!isset($title) && function_exists('menu_get_active_title')) { >> > ? ? $title = check_plain(menu_get_active_title()); >> > ? } >> > >> > results in lots of debug output all over the first page I', loading, and >> > then in >> > >> > Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to >> > allocate 54190338 bytes) in /var/www/drupal/includes/theme.inc on line >> > 1879 >> > >> > (current PHP memory limit: 200M) >> > >> > >> > Sorry, this is too much guesswork as I don't understand enough about PHP >> > syntax. >> > >> > E.g. "inside the function" >> > drupal_set_title(check_plain($gallery->name)); probably means somewhere >> > inside the first (), or second (), either before, or after >> > "check_plain", or either before, or after "$gallery->name". >> > >> > Greetings, -asb >> > >> > _______________________________________________ >> > themes mailing list >> > themes at drupal.org >> > http://lists.drupal.org/mailman/listinfo/themes >> > >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes > > > > -- > Franz > > http://ciudaddelpico.com > > Sent from my laptop > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > From asb at kefk.org Sun Aug 21 20:28:47 2011 From: asb at kefk.org (Agon S. Buchholz) Date: Sun, 21 Aug 2011 22:28:47 +0200 Subject: [themes] All page titles identical [solved] In-Reply-To: <CAKBvJvBuSqZfR45gihsThL+XMXhO3mR4u707n4qbpriczEjY4w@mail.gmail.com> References: <4E4F2AAA.3040007@kefk.org> <20110820082645.GA2518@localhost> <4E4FB984.5030106@kefk.org> <20110820150009.GA2639@localhost> <4E4FEFE9.70800@kefk.org> <20110821095836.GA2513@localhost> <4E50EA1A.8010306@kefk.org> <CAKBvJvBuSqZfR45gihsThL+XMXhO3mR4u707n4qbpriczEjY4w@mail.gmail.com> Message-ID: <4E516A7F.4040106@kefk.org> > for the first 2 errors, you just forgot the ';' at the end of > debugging lines. Indeed, now I'm getting lots of debug output, including some serialized data I can not interpret. As far as I can see, "drupal_set_title" is also nowhere referenced. The array segment around the localized "image gallery" string looks like this: [mission] => [primary_links] => Array ( [menu-29141] => Array ( [minipanel] => galerien [menu_minipanels_hover] => Array ( [position] => Array ( [target] => false [target_custom] => [type] => absolute [corner] => Array ( [target] => bottomLeft [tooltip] => topLeft ) ) [show] => Array ( [delay] => 100 [when] => Array ( [event] => mouseover ) [effect] => Array ( [type] => slide [length] => 0 ) ) [hide] => Array ( [fixed] => true [effect] => Array ( [type] => slide [length] => 0 ) ) [style] => Array ( [name] => light [width] => Array ( [min] => 0 [max] => 800 ) [border] => Array ( [width] => 3 [color] => #d3d3d3 [radius] => 0 ) [tip] => topLeft ) [mlid] => 29141 ) [attributes] => Array ( [title] => Bildergalerien ) [href] => galerie [title] => Galerien ) [menu-38332] => Array ( [minipanel] => reisen [menu_minipanels_hover] => Array ( [position] => Array ( [target] => false [target_custom] => [type] => absolute [corner] => Array ( [target] => bottomLeft [tooltip] => topLeft ) ) [show] => Array ( [delay] => 100 [when] => Array ( [event] => mouseover ) [effect] => Array ( [type] => slide [length] => 0 ) ) [hide] => Array ( [fixed] => true [effect] => Array ( [type] => slide [length] => 0 ) ) [style] => Array ( [name] => light ... In the surrounding of the string appears the 'menu_minipanels' module; with trial-and-error I disabled this module and immediately got the "normal" titles back. I'm not sure if this suffices for a bug report against 'menu_minipanels', but I'll try it. Thanks again to you all! -asb