SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: Geri on October 31, 2008, 01:37:46 PM

Title: Undefined index: sp-articlesAdd
Post 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).
Title: Re: Undefined index: sp-articlesAdd
Post by: ???1031 on November 01, 2008, 07:56:44 AM
Good question, normal the text files are loaded for this :).

I will look into this so that, i hope i can find this bug =).
Title: Re: Undefined index: sp-articlesAdd
Post by: asude on November 01, 2008, 08:04:23 AM
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.
Title: Re: Undefined index: sp-articlesAdd
Post by: Nathaniel on November 13, 2008, 07:19:08 PM
@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.
Title: Re: Undefined index: sp-articlesAdd
Post by: Geri on November 14, 2008, 06:40:39 AM
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

Title: Re: Undefined index: sp-articlesAdd
Post by: [SiNaN] on November 16, 2008, 02:14:27 PM
Check if you have those files in ../Themes/default/languages/ directory.

Which language package are you using?
Title: Re: Undefined index: sp-articlesAdd
Post by: Geri on November 17, 2008, 10:09:47 AM
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? :|
Title: Re: Undefined index: sp-articlesAdd
Post by: Geri on November 17, 2008, 10:21:28 AM
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.

Title: Re: Undefined index: sp-articlesAdd
Post by: Geri on November 17, 2008, 11:00:13 AM
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?
Title: Re: Undefined index: sp-articlesAdd
Post by: Talismen on November 17, 2008, 02:40:26 PM
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.
;)
Title: Re: Undefined index: sp-articlesAdd
Post by: Geri on November 23, 2008, 04:20:42 AM
Thanks. I got it. ;)

This is an issue only for some servers.

For both versions,

SPortalxx.php

Find:

Code: [Select]
if(loadLanguage('SportalAdmin') === false)
loadLanguage('SportalAdmin', 'english');

Replace:

Code: [Select]
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.
Title: Re: Undefined index: sp-articlesAdd
Post by: [SiNaN] on November 30, 2008, 07:19:01 AM
This is fixed with 2.1.
Title: Re: Undefined index: sp-articlesAdd
Post by: Annie85 on April 09, 2009, 06:35:37 AM
I am still running the 2.05 version but never got this error message.
Title: Re: Undefined index: sp-articlesAdd
Post by: [SiNaN] on April 09, 2009, 06:48:11 AM
It just appear on some servers.
SimplePortal 2.3.8 © 2008-2024, SimplePortal