Undefined index: actual_theme_dir

Started by HunterP, March 23, 2011, 09:16:45 AM

Previous topic - Next topic

HunterP

Quote from: Arantor on March 23, 2011, 02:55:05 PM
I'm willing to bet that it doesn't happen on the default theme, but it does on another theme, because there's a missing parameter for the other theme (smf_themes table, where id_member = 0, id_theme = theme id, variable = theme_url)

Possibly... My forum runs on the core theme, no-one uses the default theme.

Any way to fix this?

Bigguy

I was wrong and am sorry for that. Arantor can help you out now. He seems to know whats going on here. :)

Arantor

I only know what's going on after having read through the source ;) All the stuff you've done is still awesome, Bigguy, because it means we have a certain amount of thoroughness in fixing issues rather than my latent maverick approach ;)

HunterP: check the themes table for all 'variables' of theme_url and see what you get for the Core theme. It's possible that it's misconfigured in the update, especially since repair-settings doesn't touch separate themes.
Holder of controversial views, all of which my own.


Bigguy

Well, right now I am just all out of ideas, lol. I keep searchin though. :)

HunterP

Quote from: Arantor on March 23, 2011, 03:14:37 PM
HunterP: check the themes table for all 'variables' of theme_url and see what you get for the Core theme.

Sorry, please tell me how and where to do this?  ::)

Arantor

Go to phpMyAdmin, select your forum's database, then select smf_themes from the provided list of tables.

When you browse the table, select the 'variable' column to order by that column, then go through the pages until you hit the list of entries for theme_url. For whatever theme id your theme is (normally 4 or 5 for Core if you've gone from 1.1.x to 2.0), check what the theme_url entry is for it, and whether it's the real URL to where the theme information is (like images and CSS)

Once you've done that, do the same for theme_dir.
Holder of controversial views, all of which my own.


HunterP

Quote from: Arantor on March 23, 2011, 03:29:56 PM
Go to phpMyAdmin, select your forum's database, then select smf_themes from the provided list of tables.

When you browse the table, select the 'variable' column to order by that column, then go through the pages until you hit the list of entries for theme_url. For whatever theme id your theme is (normally 4 or 5 for Core if you've gone from 1.1.x to 2.0), check what the theme_url entry is for it, and whether it's the real URL to where the theme information is (like images and CSS)

Once you've done that, do the same for theme_dir.

Sorry, that was more obvious than I thought :-[

http://www.hulpverleningsforum.nl/forum/Themes/default
http://www.hulpverleningsforum.nl/forum/Themes/core

Both look correct to me?

Arantor

Holder of controversial views, all of which my own.


HunterP

Quote from: Arantor on March 23, 2011, 06:05:16 PM
And what about theme_dir ?

Both the URL and DIR look correct for both of the themes. But I assume that I would experience much more problems if one of these is incorrect?

Arantor

You likely would, yes. In fact things should have gone to heck by now ;)

Hmm, then it's odd since there's no reason why actual_theme_dir should be unset if theme_dir and default_theme_dir are correct (which they seem to be)
Holder of controversial views, all of which my own.


HunterP

Quote from: Arantor on March 23, 2011, 06:45:56 PM
Hmm, then it's odd since there's no reason why actual_theme_dir should be unset if theme_dir and default_theme_dir are correct (which they seem to be)

Weird, today I got about 23 pages of this particular error. I am able to reproduce it myself, but don't see any errors of anything missing  :-\

Arantor

In which case you can try the line Bigguy posted since there's no reason why that shouldn't work in this case.
Holder of controversial views, all of which my own.


HunterP

Quote from: Arantor on March 23, 2011, 06:52:31 PM
In which case you can try the line Bigguy posted since there's no reason why that shouldn't work in this case.
Quote from: Bigguy on March 23, 2011, 02:06:08 PM
Change line 2082 in Load.php to read this and see what happens:

$settings['default_theme_dir'] . '/languages',

It's just a guess but I figured might as well try it and see what happens.

2082:    // We possibly have a base theme directory.
2083:    if (!empty($settings['base_theme_dir']))
2084:       $language_directories[] = $settings['base_theme_dir'] . '/languages';

2082 is a comment line? Of did he mean the line which causes the error? That is 2079.

Arantor

Well, it's going to be a little different between a modified and an unmodified Load.php, but yeah, the line causing the error.
Holder of controversial views, all of which my own.


HunterP

Quote from: Arantor on March 23, 2011, 06:59:30 PM
Well, it's going to be a little different between a modified and an unmodified Load.php, but yeah, the line causing the error.

Ok, changed it, ging me twice the same line :

      // Default language directories to try.
      $language_directories = array(
         $settings['default_theme_dir'] . '/languages',
         $settings['default_theme_dir'] . '/languages',
      );

Let's see what happens now.

HunterP


Obiwanbde

Hi,

I have same error log items for a user. I think I have made the controls mentioned in this post but still getting these errors.

Thanks in advance.

Okan.

SMF 2.0.2 Fresh/Clean Install
Mods:
1.   BoardColor   V1   [ Uninstall ]
2.   Copyright and Footer Links   3.2   [ Uninstall ]
3.   Add Social Media Icons To Profiles   1.0.7   [ Uninstall ]
4.   Custom Greeting Mod   1.1.1   [ Uninstall ]
5.   Additional Membergroups on Profile   1.1.2   [ Uninstall ]
6.   Categories in Add and Edit Membergroups pages   0.1.1   [ Uninstall ]
7.   SMF Gallery Lite   3.1.4   [ Uninstall ]
8.   AJAX Recent Topics   1.1   [ Uninstall ]
9.   SMFPacks Shoutbox   1.0.4   [ Uninstall ]

Error Message:
hxxp:xxxx.xxx/forum/index.php?action=shoutbox;sa=get;xml;row=108 [nonactive]: Undefined index: actual_theme_dir
File: /home/xyz/public_html/forum/Sources/Load.php
Line: 2099

Load.php 2096-2100
   // Default language directories to try.
      $language_directories = array(
         $settings['default_theme_dir'] . '/languages',
         $settings['actual_theme_dir'] . '/languages',
      );

Obiwanbde

Hi,

What I see is error messages is just related with one user so far. He is just looking at the main view of all the boards, no activity.But messages still coming through.

The reason I think automatic refresh of Shoutbox Mod. Similar user in the same membergroup does not produce same error messages at least error log filter does not find any similar error from different users.

If user tries to look at other boards and posts no error displayed on his screen but lots of errors produced in the error log. It is not related directly with shoutbox but I could not find what.

Any help ?

teos55

SMF 2.0.3  Sp 2.3.5 default theme curve

  Today I faced the same problem after below scenario ...

  For some reason I changed my language from my own language to english in the profile section and returned back to my own language.

  After that, I began to receive ....

http://12345.org/index.php?action=admin;area=logs;sa=errorlog;desc8: Undefined index: actual_theme_dirFile: /home/12345/public_html/Sources/Load.php
Line: 2168


line around 2168   from 2161 to 2169

// If we don't have our theme information yet, lets get it.
      if (empty($settings['default_theme_dir']))
         loadTheme(0, false);

      // Default language directories to try.
      $language_directories = array(
         $settings['default_theme_dir'] . '/languages',
         $settings['actual_theme_dir'] . '/languages',
      );



I tried repair_setttings.php   no help

Now, whatever the language is set, I get this error in the error log ever after deleting all items, then appears again.

Any help ?  Not applied a new mod since ages ...

nb: 

actual_theme_dir  only apperas in  load, subs and manageserver.php s in the source dir.

Matthew K.

Open your own topic, this is someone else's.

Advertisement: