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: 553
  • 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]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: 8: Undefined index: color  (Read 8120 times)

0 Members and 1 Guest are viewing this topic.

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
8: Undefined index: color
« on: November 03, 2008, 08:51:04 PM »
Getting this error in error logs .. it seems to be recent ...

Code: [Select]
8: Undefined index: color
File: /home/adrianw/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 468

SP 2.0.4
SMF 1.1.6

Any ideas ?

can i just go delete line 468?

Offline Jade Elizabeth

  • Comrade
  • *
  • Posts: 1146
  • Gender: Female
    • Jades-World
  • SMF Version: None
  • SP Version: None
Re: 8: Undefined index: color
« Reply #1 on: November 03, 2008, 11:21:37 PM »
* Jade passes out

An undefined index?

Well, that's an eval error:
Quote
At times of debugging, errors come from files do not contain the said error in your Forum Error Log. This is caused by eval().

eval() is a PHP command that evaluates a string as PHP code. Since file_get_contents() (a function that is similar to file(), except that it returns the file in a string) returns the contents of a file as a string, SMF is granted accesability to pin down the specific syntax that is causing a parse error, and consequently outputs an error message showing you the code that is producing the problem.

eval() by default is turned on. The downside to that is PHP does not know where an undefined error occurred as the entire file was allocated as a string. By switching eval() off, SMF uses require() (or, more often, require_once()) to get the template file. This in turn lets PHP report the exact location of the error.

To disable eval(), open phpMyAdmin (refer to: What is phpMyAdmin?) and click the SQL tab and use the following query:

Code: [Select]
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
By disabling eval(), the errors that have already occurred need to be propagated once again. The new errors that have appeared in the error log contain the correct file that PHP had a problem with.

To reactivate eval(), use the following query:

Code: [Select]
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';

This is what we call live testing Help Squad docs  >:-D
Jade Elizabeth
(Ex Language Coordinator)
Owner of Awesome Crazy (the home of the insane),
Color Me Forum (For Adult Coloring Enthusiasts), and
Creative Burrow (A place for creative people).

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: 8: Undefined index: color
« Reply #2 on: November 04, 2008, 12:43:20 AM »
Getting this error in error logs .. it seems to be recent ...

Code: [Select]
8: Undefined index: color
File: /home/adrianw/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 468

SP 2.0.4
SMF 1.1.6

Any ideas ?

can i just go delete line 468?
Good Luck to find that line ;).

Did this error only appear once? Or did it appear from time to time? :)

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: 8: Undefined index: color
« Reply #3 on: November 04, 2008, 04:52:38 AM »
by default, SimplePortal does not include a 'color' index in its codes. it would be better if you paste here the codes you use in your custom PHP blocks.

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: 8: Undefined index: color
« Reply #4 on: November 04, 2008, 08:20:21 AM »
Good Luck to find that line ;).

Did this error only appear once? Or did it appear from time to time? :)

Bye
DIN1031

Happening since im running a php calender block, happens everytime someone looks at the portal

by default, SimplePortal does not include a 'color' index in its codes. it would be better if you paste here the codes you use in your custom PHP blocks.

hmmm, i think you right .. im running a calender php block ...

i cant post the code as its over the 2000 charactor limit ... but you can see the code im using HERE


Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: 8: Undefined index: color
« Reply #5 on: November 04, 2008, 10:28:51 AM »
site is being moved to another server from what i see. check the calendar block here. i believe they are the same, but the one here is fixed.

Offline Jade Elizabeth

  • Comrade
  • *
  • Posts: 1146
  • Gender: Female
    • Jades-World
  • SMF Version: None
  • SP Version: None
Re: 8: Undefined index: color
« Reply #6 on: November 04, 2008, 11:33:19 AM »
Why are you using TinyPortal code?
Jade Elizabeth
(Ex Language Coordinator)
Owner of Awesome Crazy (the home of the insane),
Color Me Forum (For Adult Coloring Enthusiasts), and
Creative Burrow (A place for creative people).

Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: 8: Undefined index: color
« Reply #7 on: November 04, 2008, 11:38:22 AM »
it is just php codes. php block codes will work for everything that parses php.

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: 8: Undefined index: color
« Reply #8 on: November 04, 2008, 01:03:28 PM »
site is being moved to another server from what i see. check the calendar block here. i believe they are the same, but the one here is fixed.

ok thanks, works , will watch to see if errors go away .. gonna also post for help as i need the calender to show events and holidays as well

edit ........

error logs clean once again ..
« Last Edit: November 04, 2008, 01:17:36 PM by Aw06 »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: 8: Undefined index: color
« Reply #9 on: November 10, 2008, 06:45:24 AM »
Last update for this? Should we mark this as solved?
And slowly, you come to realize... It's all as it should be...

Offline Aw06

  • Full Member
  • ***
  • Posts: 238
  • Gender: Male
    • www.ShopinJA.com
  • SMF Version: 1.1.13
  • SP Version: 2.3.2
Re: 8: Undefined index: color
« Reply #10 on: November 10, 2008, 10:04:06 AM »
Last update for this? Should we mark this as solved?

yeah, pretty much solved