The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undefined symbol ''
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Undefined symbol ''
Hello again! Smile

I'm getting the Undefined symbol '' error all the time, with lines similar to this one. Everything works fine, but I'm clearly missing something. :<

Code:
ELSEIF !(<SRC.FINDID.i_mem_vote>) && !(<SRC.ACCOUNT.TAG.VOTE> == 1) >> problem is here
WEBLINK bla

or

Code:
ELSEIF (<SRC.TAG.QUESTDONE> == 01) >> problem is here
DIALOG d_example

Thanks once again! Smile
(This post was last modified: 08-04-2013 06:39 AM by pinku.)
08-04-2013 06:36 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: Undefined symbol ''
be sure that TAG.QUESTDONE is set on SRC
If not sure or want to avoid those errors, use TAG0 instead of TAG

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 08-04-2013 07:35 AM by Feeh.)
08-04-2013 07:35 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: Undefined symbol ''
if the <SRC.ACCOUNT.TAG.VOTE> doesn't exists it will return a null value, so the sphere will read the script like this !( == 1) instead !(0 == 1)
to avoid it you must use TAG0 instead of TAG, because TAG0 automatically returns a 0 value if the tag is empty
08-04-2013 10:50 AM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #4
RE: Undefined symbol ''
Oh! I totally missed this class. Tongue
Makes a lot of sense on my scripts, hahaha. Smile

Thanks guys.
08-05-2013 12:07 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)