Hi all,

Today I installed Drupal for the first time. Everything seemed to be working fine until I clicked on the Site Configuration > Themes link and changed the theme (no new themes; just the ones that come with the original package). As I saved the theme settings, the following message appeared on top of all subsequent pages:

Notice: Undefined index: marvin in G:\Inetpub\wwwroot\drupalteachtech\includes\theme.inc on line 139

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\Inetpub\wwwroot\drupalteachtech\includes\theme.inc:139) in G:\Inetpub\wwwroot\drupalteachtech\modules\user.module on line 5

Even if I set the theme back to Marvin, the problem persisted.

I deleted the database and started from scratch. This time I went straight to the Themes link, and I just hit the Save theme settings button, without changing anything. Again, the same problem.

Any clues?

Thank you!

Marcelo

Comments

ax’s picture

marcelo’s picture

Thank you for your reply, ax!

I tried getting read of blank spaces after "?>" in theme.inc and marvin.theme (just in case), but it didn't work. The first problem that comes up as soon as I click on Site Configuration > Themes (I don't even have to click on the Save theme settings button) is:

Notice: Undefined index: marvin in G:\Inetpub\wwwroot\drupalteachtech\includes\theme.inc on line 139

There _is_ a line 139 in theme.inc:

135. function theme_invoke() {
136. global $theme;
137. $args = func_get_args();
138. $function = array_shift($args);
139. if (method_exists($theme, $function)) {
140. return call_user_method_array($function, $theme, $args);
141. }
142. else {
143. return call_user_func_array($function, $args);
144. }
145. }
146. ?>

That's the end of the theme.inc file, and there are no new lines or spaces after ?>.

I'll keep on trying things out. Any suggestions/comments/leads would be very much appreciated!

Thank you!

Marcelo

P.S.: By the way, I'm using
Drupal 4.1.0
MySQL 4.0.12
php 4.3.1
Windows 2000 Server with IIS

ax’s picture

there was a bug introduced on 2003-Mar-5 that prevented setting user themes and showed symptoms as you describe. this bug got fixed on 2003-Mar-5. try to get the latest 4.1.0 from cvs (the 4.1.0 available for download does not include this) and see if it fixes your problem.

marcelo’s picture

Thank you for the tip, Ax! I downloaded and installed Drupal 4.1.0 last week, so that might be it. I'll get the latest 4.1.0 from cvs, and report back in this forum.

Thanks again!

Marcelo

Nathan-1’s picture

Hi there I too have tried downloading the latest 4.1.0 from cvs, (love the admin look) but still I am getting errno13 when I go to admin the themes.

Any ideas?
I've CHMODded til I'm blue in the face Only local images are allowed.

Thanks, Nathan

ax’s picture

"OpenDir: Permission denied (errno 13) in ..." almost 100% is a permission problem. does the user the webserver (if you use php as a module) / the php cgi runs as has read permissions for all your theme files / dirs / parent dirs?

Anonymous’s picture

Hi there I too am getting a problem here with the admin page.

When I go to modules or themes I get this denied access message:

warning: OpenDir: Permission denied (errno 13) in /home/sites/site43/web/modules/system.module on line 149

I've read the above, but do I use a (unstable?) version from the latest cvs?

Is there another fix for this problem?

btw: I downloaded 4.1 yesterday

Nathan

zw’s picture

The problem is that in the default database the Marvin theme is set as 'marvin' but reports itself as 'Marvin' (or the other way around).

I've reported and fixed this problem some time ago, but Dries did not apply my patch because the theme stuff needs rewrite (?) http://lists.drupal.org/pipermail/drupal-devel/2003-February/021708.html

Nathan-1’s picture

Hi, thanks for that - i tried changing the name of the theme to marvin (small caps) and reuploading but no affect. Also I tried changing the name in the database and this made the theme misunderstood and so no style was applied at all. Still I get the following errors when i try and Admin the themes:

warning: OpenDir: Permission denied (errno 13) in /home/sites/site43/web/modules/system.module on line 228.warning: OpenDir: Permission denied (errno 13) in /home/sites/site43/web/modules/system.module on line 228.warning: OpenDir: Permission denied (errno 13) in /home/sites/site43/web/modules/system.module on line 228.warning: OpenDir: Permission denied (errno 13) in /home/sites/site43/web/modules/system.module on line 228.warning: Invalid argument supplied for foreach() in /home/sites/site43/web/modules/system.module on line 298.

Any more ideas?

Thanks,
Nathan

dries’s picture

You'll want to chmod the access permissions of the files on the server such that the httpd (webserver) has read access to them. If you don't have a shell account, you'll want to explore the remote file permission functionality of your FTP client.

Nathan-1’s picture

Hi Dries,

Yes, I'm afraid file permission was the first place I went to. All neccessary file have 777 access rights.

Any other suggestions?

Thanks,

Nathan

dries’s picture

I might be mistaken but I think I fixed that problem, though not in the way you suggested. If you can still reproduce the problem in Drupal CVS, let me know ...