Error with putting array to repeator

Does anyone know why when putting array to repeator i have such errors . With gallery i cant find anywhere code for gallery. I mean how to put gallery pictures to repeator by code.
But other fields are difficult to understand becasue they shows in repeator but in concole i see error.

Wix code SDK error: The text parameter that is passed to the text method cannot be set to the value 0. It must be of type string.moje pokojeLine 53Wix code SDK Warning:
The items parameter of “gallery3” that is passed to the items method cannot be set to null or undefined

my post refers to post witch great solusion for coparing two queries.

website
https://misiewicz3.wixsite.com/mysite/kopia-pokoje
user info@ceglarnia.com pass: info

Hey
First of all I would not recommend you to add passwords and other credentials in this public forum because it gets indexed by Google and can be seen by anyone.

Secondly I would like to see your code to determine what might be wrong in your code. Please paste your code in here, select it all and then format it as code.

The Wix Code SDK error you get that a text parameter can’t be set to 0 (zero) as a value is because all text elements only accepts strings as values. In you code where you set the text property try this.

$w("#textElement").text = itemData.numberValue.toString();

That makes the value a string value so any number or date would now work as text value.

Then you have the gallery3.items that can’t be set to null or defined. This means that are somewhere in your code you have the below.

$w("#gallery3").items = "your array here"

That value that you try to assign to the .items must not be null or undefined. If it is it means that there os nothing in the value and therefore it cannot be used as items.

Try to use the developer console to see that value what it contains and where you try to get the items for the gallery.

In the API Reference which is really good you can find all about setting and using items through code in your gallery.

And of course in a repeater as well.

Good luck! Happy coding.

code looks like this. I changed text40 to number and its ok but in tekst38 there is a field of notes. Which means sometimes there is no notes. So it shows violation
“wix code SDK Warning: The text parameter of “text38” that is passed to the text method cannot be set to null or undefined.”

violation it means that code is wrong and page can not work. It shows good values and i’m not sure if it can be like this.

$w.onReady( () => { getEmptyRooms().then((emptyRoomsList) => { $w(" #repeater3 “).data = emptyRoomsList; // Add this $w(” #repeater3 “).forEachItem( ($item, itemData, index) => { $item([#text36](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text36?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).text = itemData.title;
$item([#text40](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text40?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).number = itemData.g2
$item([#text46](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text46?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).number = itemData.dostawkimax;
$item([#text48](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text48?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).text = itemData.lokalizacja
$item([#text38](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text38?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).text = itemData.uwagi;
$item([#text80](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text80?dvc=c&experiment_id=wix%2Bcode%5Ee%5E209150830980%5E1t1%3B%3Fh&gclid=EAIaIQobChMI7bae8Jzc3AIVGYfVCh0nWgKzEAAYASAAEgJTmPD_BwE&h=https%3A%2F%2Fwww.wix.com%2Fcode%2Fhome&utm_campaign=179424220%5E47357753009&utm_medium=cpc&utm_source=google%2F%2F/)).text = itemData._id;
$item(” #gallery3 ").items = itemData.zdjeciepo; }); }); });