Hi,
I'm getting this error when a member accesses his profile page :
8: Undefined index: actual_theme_dir
File: /Sources/Load.php
Line: 2082
2079: // Default language directories to try.
2080: $language_directories = array(
2081: $settings['default_theme_dir'] . '/languages',
2082: $settings['actual_theme_dir'] . '/languages',
2083: );
Anyone?
Can you post a list of mods that you have installed please. :)
Quote from: Bigguy on March 23, 2011, 09:36:10 AM
Can you post a list of mods that you have installed please. :)
1. Tapatalk SMF 2.0 RC4 Plugin 1.3.0
2. Bakers Dozen Pages 1.2
3. Profile Fields & Icons Mod 1.0
4. Bookmarks 2.3
5. Image Quote Removal Package 1.1.1
6. Change All Subjects 1.1.2
7. Post Registrations 1.2
8. Login Detector 1.0
9. Reason For Editing Mod 2.3.2
10. nCode Image Resizer 1.3.1
11. SMF Staff Page 1.7
12. Aeva ~ Auto-Embed Video & Audio 7.1
13. Share This Topic 2.8
14. P2000-Tabellen 1.11 (my own mod which parses some HTML in parse_bbc()
15. Stop Forum Spam 0.8
Ok, can you upload the Load.php file here and I will take a quick look to see if anything is out of place in it. When did this start happening. Did you edit any files before you noticed it. ???
Quote from: Bigguy on March 23, 2011, 10:41:36 AM
Ok, can you upload the Load.php file here and I will take a quick look to see if anything is out of place in it. When did this start happening. Did you edit any files before you noticed it. ???
I've recently upgraded to RC5 and can't exactly pinpoint the moment when this started :(
Are you using utf-8. ???
Did you have any mods installed that edited the profile in any way, like the User CP mod or anything like that.
Quote from: Bigguy on March 23, 2011, 11:24:48 AM
Did you have any mods installed that edited the profile in any way, like the User CP mod or anything like that.
No, I copy/pasted the full list.
Have you checked all your paths to make sure they are correct. Have you tried repair_settings.php
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)
I have to step out for a minute to look at a computer but won't be long.
Quote from: Bigguy on March 23, 2011, 11:52:22 AM
Have you checked all your paths to make sure they are correct. Have you tried repair_settings.php
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)
I have to step out for a minute to look at a computer but won't be long.
I know repair_settings. Tried it, but all paths are ok. As far as I know, I'm not experiencing any problems like missing texts or whatsoever, only these errors anytime a member checks his profile.
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.
In a fresh install of SMF 2.0 RC5 there are no instances of "$settings['actual_theme_dir']" which insinuates that it's from a mod.
I figured it was and possible from the httbl mod but was not sure.
HunterP, might I suggest downloading a zip of your website and then using a program to search the zip such as Notepad++ for "$settings['actual_theme_dir']" to see where it originates?
Quote from: Labradoodle-360 on March 23, 2011, 02:08:40 PM
In a fresh install of SMF 2.0 RC5 there are no instances of "$settings['actual_theme_dir']" which insinuates that it's from a mod.
I used the upgrade package en I find 'actual_theme_dir' in :
Load.php :
$settings['actual_theme_url'] = $settings['theme_url'];
$settings['actual_images_url'] = $settings['images_url'];
$settings['
actual_theme_dir'] = $settings['theme_dir'];
Subs.php :
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['actual_theme_url'];
$settings['images_url'] = $settings['actual_images_url'];
$settings['theme_dir'] = $settings['
actual_theme_dir'];
}
ManageServer.php :
$backup_actual_theme_dir = $settings['
actual_theme_dir'];
$backup_base_theme_dir = !empty($settings['base_theme_dir']) ? $settings['base_theme_dir'] : '';
// Override these for now.
$settings['
actual_theme_dir'] = $settings['base_theme_dir'] = $settings['default_theme_dir'];
getLanguages(true, false);
// Put them back.
$settings['
actual_theme_dir'] = $backup_actual_theme_dir;
if (!empty($backup_base_theme_dir))
$settings['base_theme_dir'] = $backup_base_theme_dir;
Quote from: Labradoodle-360 on March 23, 2011, 02:08:40 PM
In a fresh install of SMF 2.0 RC5 there are no instances of "$settings['actual_theme_dir']" which insinuates that it's from a mod.
Funny, I found it right there in that code as quoted on a fresh install... it's supposed to be there. In fact, in loadBoard() it's actually derived from $settings['theme_dir']
I did some searching and all i could come up with was errors from the httpbl mod or what ever the name of it is. This is why I thought it was not code from SMF itself.
Quote from: Bigguy on March 23, 2011, 02:52:55 PM
I did some searching and all i could come up with was errors from the httpbl mod or what ever the name of it is. This is why I thought it was not code from SMF itself.
As I said, I recently upgraded to RC5 (from 1.1.13). I'm 100% sure no files remained in the Source en Themes folders, and I didn't download or install the httpbl mod.
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)
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?
I was wrong and am sorry for that. Arantor can help you out now. He seems to know whats going on here. :)
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.
Well, right now I am just all out of ideas, lol. I keep searchin though. :)
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? ::)
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.
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?
And what about theme_dir ?
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?
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)
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 :-\
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: 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.
Well, it's going to be a little different between a modified and an unmodified Load.php, but yeah, the line causing the error.
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.
Quote from: HunterP on March 23, 2011, 07:14:17 PM
Let's see what happens now.
Seems to be solved, no more errors.
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:
http://xxxx.xxx/forum/index.php?action=shoutbox;sa=get;xml;row=108: 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',
);
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 ?
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.
Open your own topic, this is someone else's.
Done.