collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 400
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: keep getting these errors  (Read 9380 times)

0 Members and 1 Guest are viewing this topic.

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
keep getting these errors
« on: January 08, 2012, 09:02:42 PM »
keep getting these errors wherever i go

Code: [Select]
8: Undefined index: sp-positionFooter
File: /home/kumakun1/public_html/Sources/Admin.php
Line: 320

8: Undefined index: sp-positionHeader
File: /home/kumakun1/public_html/Sources/Admin.php
Line: 315

8: Undefined index: sp_shoutbox_prune
File: /home/kumakun1/public_html/Sources/Subs-Portal.php
Line: 987

8: Undefined index: sp_move
File: /home/kumakun1/public_html/Sources/Subs-Portal.php
Line: 988

8: Undefined index: sp_link

8: Undefined index: sp_all

added: see attachment
« Last Edit: January 08, 2012, 09:17:50 PM by Eudemon »

↑also offer free SMF support and customization↑

Offline tomeh

  • Full Member
  • ***
  • Posts: 113
    • infomiasto.eu
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: keep getting these errors
« Reply #1 on: January 09, 2012, 07:45:34 AM »
The mistake may be an older version of smf or installation error
Serwis infomiasto.eu - poradniki i przewodniki tematyczne

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #2 on: January 09, 2012, 06:53:12 PM »
installation went smooth with no error
and im using the latest smf version

↑also offer free SMF support and customization↑

Offline Old Fossil

  • Beta Tester
  • *
  • Posts: 796
  • Gender: Male
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: keep getting these errors
« Reply #3 on: January 09, 2012, 09:59:07 PM »
Which language is used.

A link to the forum will also be useful.

 :nervous-happy:
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #4 on: January 09, 2012, 10:20:00 PM »
english

here is the link
http://eudemon.org/index.php

↑also offer free SMF support and customization↑

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #5 on: January 12, 2012, 06:01:17 PM »
ok here is what i find out

for example the
8: Undefined index: sp-positionFooter

if i open that file, it is this line
'footer' => array($txt['sp-positionFooter']),

which, is a $txt string

it is located in sportaladmin file in language folder
$txt['sp-positionFooter'] = 'Footer';
there is the line

but for some reason is still showing error??
if it is a permission problem, then why all the other txt strings are able to show
that just weird

btw i wrote my own chinese txt php file for "forum"
it is able to show in my other smf site but not this one, and the other one doesn't have these errors either

can you able to tell what might cause this happen?
« Last Edit: January 12, 2012, 06:14:00 PM by Eudemon »

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #6 on: January 12, 2012, 10:52:42 PM »

You have your forum set to English UTF-8, correct ??
The installation should have included the utf-8 files.
Make sure your language directory contains both the regular & utf-8 language files for SimplePortal.

For your other language file (not related to SP) that is giving an issue, try adding the suffix of -utf8 to the file name.
ie. mylangfile-utf8.php

Clear your smf cache before testing any changes.
If this corrects the issue, tell us.



Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #7 on: January 12, 2012, 11:47:37 PM »
my forum is english   ISO-8859-1 not utf-8
and i even re-uploaded all the language files find in the install package, doesn't work
my other language files already have utf8 in the end, it is the same file i use for my other site that works

again all strings in the language file work except those few lines (i didn't modify it at all)
and i have cleared the cache, doesn't work
see attached image for another example

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #8 on: January 13, 2012, 07:51:50 AM »

OK I see your forum is set at ISO-8859-1 in which case it should be using all the regular English language files (not utf-8).
I am assuming you are using SP 2.3.4 and installed it via your package manager.

In your example pic, only some $txt from the SPortalAdmin.english.php are not working?
Peculiar but there can be a few things to cause this.

Quote
btw i wrote my own chinese txt php file for "forum"
First try omitting the above & all its pertaining edits to see if it is somehow causing the issue.

 

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #9 on: January 13, 2012, 12:41:36 PM »
Quote
In your example pic, only some $txt from the SPortalAdmin.english.php are not working?
correct

Quote
First try omitting the above & all its pertaining edits to see if it is somehow causing the issue.
problem is alrdy there before i add those file
my other site that has the same file has no problem

anyways, did that, problem still remain

im using smf 2.0.2 and sp 2.3.4
« Last Edit: January 13, 2012, 12:48:48 PM by Eudemon »

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #10 on: January 13, 2012, 02:54:06 PM »

I have consulted another staff member regarding how the SimplePortal copyright is displayed on your forum and I have been informed that it is mandatory for the it to be visible.  I understand it is visible when a link is toggled but it is not always visible.

Until this is adjusted I regret to inform you that I can no longer provide you with support.

btw dziner studio may have similar conditions although I see it is a paid theme so I'm not positive.

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #11 on: January 13, 2012, 03:27:21 PM »
it is adjusted now

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #12 on: January 13, 2012, 05:33:42 PM »
it is adjusted now

Thank you.

Quote
if it is a permission problem, then why all the other txt strings are able to show
that just weird

btw i wrote my own chinese txt php file for "forum"
it is able to show in my other smf site but not this one, and the other one doesn't have these errors either

The other $txt variables from that same language file are working but the header & footer text is not?!

Just to clarify.. these 2 variables:
Code: [Select]
$txt['sp-positionHeader'] = 'Header';
$txt['sp-positionFooter'] = 'Footer';
... are present in the file but are undefined on the forum, whereas all other $txt seem to be working?

Also you stated it is working properly for you on another SMF installation.
Therefore imo another mod and/or edit is conflicting somehow.
 
Do you have a mod installed that alters the header & footer (top & bottom) of your pages?
I ask this because there are 2 divs on the page with id of header & footer.
Perhaps a mod is using those as a place marker & is somehow causing a problem when it finds that text on your admin page.

Temporarily change those $txt values to something different to test this theory.
ie.
Code: [Select]
$txt['sp-positionHeader'] = 'Top';
$txt['sp-positionFooter'] = 'Bottom';

\\Edit -> .. ahh that shouldn't cause an undefined so I doubt that will work.
atm I'm puzzled although somehow something is conflicting as I've stated.
There must be a mod or manual edit you did to this forum that differs from your other installation.
« Last Edit: January 13, 2012, 05:36:58 PM by Underdog »

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #13 on: January 13, 2012, 08:12:27 PM »
Quote
... are present in the file but are undefined on the forum, whereas all other $txt seem to be working?
those two are present in the file, i even tried re-upload a fresh copy from fresh download sp package, always those two that give errors
and all other seem to be working

ok here is a cool thing

i changed my theme to smf default and those errors stopped
what should i look for in my theme's files

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #14 on: January 13, 2012, 10:59:21 PM »
those two are present in the file, i even tried re-upload a fresh copy from fresh download sp package, always those two that give errors
and all other seem to be working

ok here is a cool thing

i changed my theme to smf default and those errors stopped
what should i look for in my theme's files

Glad to hear you narrowed it down to the theme.
I can only test free dziner studio theme's & with those I have no issues.
Whereas with your paid theme I am unable to test it to figure out the issue.
Off hand I have no idea why only 2 variables from your language file refuse to hold their values only while using that specific theme.

I'll make 1 suggestion to try..

File: Sources / Admin.php
find:
Code: [Select]
loadLanguage('Admin');

replace with:
Code: [Select]
loadLanguage('Admin');
loadLanguage('SPortalAdmin');
 

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #15 on: January 14, 2012, 12:31:32 AM »
did that, didn't work

im pretty sure a fresh install of the theme won't give error
but since i purchased the theme i have done so much customizations and i can't rly redo it (n my membership alrdy expired)
so i need to find out what producing the conflict

btw, can u able to find code changes for custom theme between smf version 2.0 and 2.0.2?

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #16 on: January 14, 2012, 09:35:23 AM »
did that, didn't work

im pretty sure a fresh install of the theme won't give error
but since i purchased the theme i have done so much customizations and i can't rly redo it (n my membership alrdy expired)
so i need to find out what producing the conflict

btw, can u able to find code changes for custom theme between smf version 2.0 and 2.0.2?

I made something that will compare 2 php files and return any line code changes. 
To use it I suggest creating a temporary php block & use the preview command.
You'll have to upload both files .. ie. rename one to  file_old or something.

I put $boarddir in there in case you want to reference from the main dir for your files when you edit those entries below but I used $sourcedir in this example.
Code: [Select]
global $boarddir, $sourcedir;
$file1 = $sourcedir . '/somefile1.php';
$file2 = $sourcedir . '/somefile2.php';

if (@file_exists($file1) && @file_exists($file2))
{
$read1 = explode("\n", (@file_get_contents($file1)));
$read2 = explode("\n", (@file_get_contents($file2)));

foreach (array_difference($read1, $read2) as $diff_line)
echo $diff_line, '<br />';
}


function array_difference($array_a, $array_b)
{
$union_array = array_merge($array_a, $array_b);
$intersect_array = array_intersect($array_a, $array_b);
return array_diff($union_array, $intersect_array);
}
« Last Edit: January 14, 2012, 09:59:40 AM by Underdog »

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #17 on: January 14, 2012, 06:36:35 PM »
i made a copy and put it in my wamp server to test
i uninstalled every mod and put ur codes to a php file, added $themedir to it
and also moved a fresh copy of the theme into the theme folder
ran the php to compare both theme, didn't output anything

right now i use notepad++ open up both theme's files
n compare line by line, since i know some programming i know what my custom edits are and how they work
this just takes some time, i will let you know how it goes

↑also offer free SMF support and customization↑

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: keep getting these errors
« Reply #18 on: January 14, 2012, 09:43:40 PM »
i made a copy and put it in my wamp server to test
i uninstalled every mod and put ur codes to a php file, added $themedir to it
and also moved a fresh copy of the theme into the theme folder
ran the php to compare both theme, didn't output anything

right now i use notepad++ open up both theme's files
n compare line by line, since i know some programming i know what my custom edits are and how they work
this just takes some time, i will let you know how it goes

I tested the code I wrote a few times & it displays any code changes for me.
For your theme files try ie. $boarddir . '/Themes/THEME_NAME/FILE.php

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: keep getting these errors
« Reply #19 on: January 15, 2012, 09:10:33 PM »
here is what i did

for these past two days i went over every single line of all files in my theme, and also compare to a fresh copy
did not find any mod's "left over" or any code that might cast this
and also remove every single modz

then install only simple portal...
those errors show up again.......

btw $txt for these lines also give errors whenever i visit shoutbox
« Last Edit: January 15, 2012, 09:14:03 PM by Eudemon »

↑also offer free SMF support and customization↑