Page 1 of 1

TROUBLE: Uncaught ArgumentCountErro

Posted: Fri Nov 09, 2018 7:52 pm
by Steffen
Hello,

I have this error-message
Uncaught ArgumentCountError: Too few arguments to function webyep_sLongTextContent(),

AND
Missing argument 2 for webyep_sLongTextContent()
etc. if I use the debug-mode.

In my index.php i have this lines, and this line make the trouble:

Code: Select all

if ((webyep_bIsEditMode()) || (webyep_sLongTextContent("headline") != "")) {echo '<header><h1>';}
webyep_longText("headline", false, "", true, 600, 400);
if ((webyep_bIsEditMode()) || (webyep_sLongTextContent("headline") != "")) {echo '</h1></header>';}


At my other installatin there is no trouble, and it is the same provider an the same php-version!

Can somebody give me a hint to solve this problem!

THANKS

Re: TROUBLE: Uncaught ArgumentCountErro

Posted: Mon Nov 12, 2018 10:42 am
by Steffen
I solved the problem!

The mistake was, that I forgott the second argument, for example (true or false)!

That is the right code:

Code: Select all

if ((webyep_bIsEditMode()) || (webyep_sLongTextContent("headline", false) != "")) {echo '<header><h1>';}
webyep_longText("headline", false, "", true, 600, 400);
if ((webyep_bIsEditMode()) || (webyep_sLongTextContent("headline", false) != "")) {echo '</h1></header>';}