By: RJJesus
Date: 2005-09-28
Time: 15:19
|
TinyButStrong Error (Merge PHP global publiciables):
I was using TBS with Mojavi and, when the template should be presented in the browser, this error is displayed:
TinyButStrong Error (Merge PHP global publiciables): Can't merge [public.message] because there is no PHP global publiciable named 'message'. This message can be cancelled using parameter 'noerr'.
can anyone tell me what might be the problem?
Thank you all
|
By: Skrol29
Date: 2005-09-28
Time: 15:45
|
Re: TinyButStrong Error (Merge PHP global publiciables):
It should be "variables" instead of "publiciables", otherwise such an error message does'nt exist.
|
By: RJJesus
Date: 2005-09-28
Time: 15:47
|
Re: TinyButStrong Error (Merge PHP global publiciables):
Sorry, didn't get it...
|
By: ClausVB
Date: 2005-09-28
Time: 18:55
|
Your error message ...
This error msg:
---
TinyButStrong Error (Merge PHP global publiciables): Can't merge [public.message] because there is no PHP global publiciable named 'message'. This message can be cancelled using parameter 'noerr'.
---
does not exist. Please post the right one. Please answer the following questions:
- Is there a variable "$message" in your PHP script?
- Does your template contain "[var.message]"?
Thanks!
Claus
|
By: ClausVB
Date: 2005-09-28
Time: 19:01
|
Your error message ...
Quote RJJesus: "I've made it, all the variables had to be declared as public, instead of var, and called as public.varname"
This statement + your error message seem to have something in common ... Did you replace "var" with "public"? It looks like you accidently changed the TBS code ...
Just my 2 cents,
Claus
|
By: RJJesus
Date: 2005-09-29
Time: 09:20
|
Re: Your error message ...
I had to change the declarations of var to public, otherwise all I had was an error like stick something...I have a $message in the PHP script and I call [public.message].
|
By: RJJesus
Date: 2005-09-29
Time: 09:45
|
Re: Your error message ...
With the var statements in the tbs_class All it gives is this error:
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers
And it still doesn't show the contents of $message
|
By: RJJesus
Date: 2005-09-29
Time: 11:25
|
Re: Your error message ...
the error changed to
TinyButStrong Error (Merge PHP global variables): Can't merge [var.message] because there is no PHP global variable named 'message'. This message can be cancelled using parameter 'noerr'.
in the same conditions
|
By: Skrol29
Date: 2005-09-29
Time: 11:39
|
Re: Your error message ...
Hello,
This mean that your variable $message is not global. If it's defined into a function, or into a script called from a function, then the variable is not global.
You can force a variable to be global in a function using the instrcution global.
|
By: RJJesus
Date: 2005-09-29
Time: 11:47
|
Re: Your error message ...
I'm sorry man, newbie things.
If you don't mind, could you please tell me how to stop the message :
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in C:\Program Files\Apache Group\Apache2\htdocs\tbs_class.php
It refers to all the lines where tbs_class has var declarations.
Thanks a lot, I had the global declaration in the beginning of the program instead of in the value attribution.
Thank you once more
|
By: Skrol29
Date: 2005-09-29
Time: 11:51
|
Re: Your error message ...
This is probably because you have PHP 5. If it's so, then use the the file "tbs_class_php5.php" instead of "tbs_class.php".
|
By: RJJesus
Date: 2005-09-29
Time: 12:05
|
Re: Your error message ...
Thanks again...newbie
See you around and, even being a newbie, if I can help say something
|
|
Posting in progress.
Please wait...
|