TROUBLE: Uncaught ArgumentCountErro

General discussions about WebYep
Post Reply
Steffen
Posts: 11
Joined: Wed Sep 05, 2018 4:45 pm

TROUBLE: Uncaught ArgumentCountErro

Post by Steffen » Fri Nov 09, 2018 7:52 pm

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

Steffen
Posts: 11
Joined: Wed Sep 05, 2018 4:45 pm

Re: TROUBLE: Uncaught ArgumentCountErro

Post by Steffen » Mon Nov 12, 2018 10:42 am

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>';}

Post Reply