Breadcrumb error with Advanced Forum module activated

Osfer - August 13, 2008 - 08:19
Project:Kommunity
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:stoeckler
Status:active
Description

Trying to access the Theme settings causes a blank screen with this information:

Fatal error: Cannot redeclare kommunity_breadcrumb() (previously declared in /public_html/sites/all/themes/kommunity/template.php:10) in /public_html/sites/all/themes/kommunity/template.php on line 14

#1

Osfer - August 13, 2008 - 13:05

After a reinstall of Drupal 6.3, there is no longer an error. However, changing the colors and the page and sidebar width results in the following error, displayed on all pages:

warning: file_put_contents(sites/all/themes/kommunity/layout.css) [function.file-put-contents]: failed to open stream: Permission denied in /public_html/sites/all/themes/kommunity/template.php on line 342.

#2

Osfer - August 13, 2008 - 15:08

Found the problem: the breadcrumb error in the first post only happens when the Advanced Forum module is activated. Deactivating it makes the configuration page for Kommunity accessible again!

#3

stoeckler - August 15, 2008 - 19:59
Assigned to:Anonymous» stoeckler

Concerning the second post, check for correct file permissions (see other issue's reply) and if you like, report if it's working then.

Thanks!

#4

Osfer - August 19, 2008 - 09:25

Hi there! Regarding the second post, you're right, that was the problem. I hadn't read the Readme!

Is this a secure solution, though? Not all Drupal users will have the know-how (or the permission) to restrict write privileges only to the FTP user. Would there be a security vulnerability if unauthorized users had the ability to write to the files specified in the readme?

#5

stoeckler - August 19, 2008 - 11:15

Hi,

there could be a security vulnerability by making the files writeable to anyone (chmod 0777). The only way to prevent that would be some kind of check that the appropriate files would not be publicly writeable. You can, of course, after changing the options to your liking, restore the files to read-only permissions.

#6

Osfer - August 20, 2008 - 00:20

Understood. Thanks!

#7

WillSWC - August 20, 2008 - 01:37

Even after applying the correct file permissions i still cannot access the page while the Advanced Forum module is activated.

#8

paulogp - September 8, 2008 - 16:28

I've installed Drupal 6.4 with "no extras" and this theme. I've the same problem.

#9

BiosElement - September 11, 2008 - 10:05

A fix for this would be nice. This really is a killing bug.

#10

tstoeckler - September 26, 2008 - 13:30
Title:Theme settings cause breadcrumb error» Breadcrumb error with Advanced Forum module activated
 
 

Drupal is a registered trademark of Dries Buytaert.