SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: Geri on October 31, 2008, 01:37:46 PM
-
I uninstaled the 2.0.4 version, and installed the 2.0.5 version, and because I was getting a lot of errors I upgraded the database too, using that upgrade1-1.php file.
Now I'm getting:
Undefined index: sp-articlesAdd
File: /home/my forum/public_html/Themes/default/SPortal1-1.template.php (article_add sub template - eval?)
Line: 107
the line 107 is:
<td>', $txt['sp-articlesAdd'], '</td>
SMF1.1.6
SP2.0.5
What could be causing that error?
I find it in the error log after I add an article using the "add an article" button, (bottom of a topic).
-
Good question, normal the text files are loaded for this :).
I will look into this so that, i hope i can find this bug =).
-
that string is currently in 'sportaladmin' language file, but only 'sportal' language file will be loaded on that page. it should be moved to 'sportal' language file.
-
@Geri,
Are you still getting this error?
There may have been an error with the upgrading, try uninstalling SimplePortal and then reinstalling it. It probably won't change anything, but it might.
Also, are you using a language other than english? Its possible that one of the translations may be missing a language string.
@asude,
The 'sportaladmin' language file is loaded by the 'SPortalAdmin' function, which controls all admin pages. I don't think thats the issue.
-
Sorry I was very bussy and I didn't had the time to write here again.
Today I tryed to uninstall and install the SP. I also have a custom language but I did not translate the SP. I just downloaded those files, changed the names to my language and uploaded to language files.
I changed my profile today to english so that the language files should not be the issue.
I got those errors when I tryed to add 1 article:
8: Undefined index: sp-articlesAdd
File: /home/my forum/public_html/Themes/default/SPortal1-1.template.php (article_add sub template - eval?)
Line: 125
8: Undefined index: sp-articlesCategory
File: /home/my forum/public_html/Themes/default/SPortal1-1.template.php (article_add sub template - eval?)
Line: 114
8: Undefined index: sp-articlesAdd
File: /home/my forum/public_html/Themes/default/SPortal1-1.template.php (article_add sub template - eval?)
Line: 107
Unable to load the 'SportalAdmin.english' language file (that confuses me...why is it "unable to load"?)
Unable to load the 'SportalAdmin.english' language file
8: Undefined index: sp-categoriesDeleteConfirm
File: /home/my forum/public_html/Sources/Subs-SPortal1-1.php
Line: 118
8: Undefined index: sp-categoriesDeleteConfirm
File: /home/my forum/public_html/Sources/Subs-SPortal1-1.php
Line: 118
-
Check if you have those files in ../Themes/default/languages/ directory.
Which language package are you using?
-
yes ...those files are there.
I use a romanian language package. For the forum, not for SP particulary.
As I said...I have no translation for SP files... I just copyed and renamed them according to my language. It worked this way with all mods that I have instaled, and with the older version of SP.
And since I changed the forum language to english (to see if the errors still appear) my own language files should not be used, and they should not cause errors,...or am I not right? :|
-
I saw now that my problems are similar with this topic:
http://simpleportal.net/index.php?topic=782.msg5802;topicseen#new
Maybe I should try that what ???1031 suggested, too. :)
I'll be back.
-
Hmmm for some reasons i think all your files are not updated...
Can you unpack the package and uploade all
*.english*.php into the directory /Themes/default/lanugage/, if you succecfull did this than all errors should disappear. :).
Bye
DIN1031
Id did that too now.
Same errors when I create an article. Damn!
Any suggestions?
-
I saw now that my problems are similar with this topic:
http://simpleportal.net/index.php?topic=782.msg5802;topicseen#new
Maybe I should try that what ???1031 suggested, too. :)
I'll be back.
PS - I've updated the thread linked in this quote.
;)
-
Thanks. I got it. ;)
This is an issue only for some servers.
For both versions,
SPortalxx.php
Find:
if(loadLanguage('SportalAdmin') === false)
loadLanguage('SportalAdmin', 'english');
Replace:
if(loadLanguage('SPortalAdmin') === false)
loadLanguage('SPortalAdmin', 'english');
Will be included in new version.
Thanks for report.
http://simpleportal.net/index.php?topic=932.0
There is the solution for the sp-articleAdd error.
Problem solved thanks to Blue Dream.
Thank you.
The Undefined index: sp-categoriesDeleteConfirm error still apears, but for that I will further ask for support în Talismen's topic : http://simpleportal.net/index.php?topic=782.0
This topic can be closed.
-
This is fixed with 2.1.
-
I am still running the 2.05 version but never got this error message.
-
It just appear on some servers.