Line 156 Error (R5) : Can't access the list item, Object is not list ! In method loadmodel() in file datalib.ring called from line 171 In method connect() in file datalib.ring called from line 168 In method connect() in file datalib.ring called from line 193 in file C:/xampp/htdocs/kingofgrinders/ex25.ring
I uploaded database folder, temp, upload, and following ring files to the htdocs
- bootstrap, cookie, datalib, ex24 to ex30, ex25_users, index, mainpage, users, weblib and webpage
but except ex26.ring and ex28.ring all other files throw the same kind of error. And when i fill username, email and password in ex26 and then click register it again throws this error -
Line 156 Error (R5) : Can't access the list item, Object is not list ! In method loadmodel() in file datalib.ring called from line 171 In method connect() in file datalib.ring called from line 168 In method connect() in file datalib.ring called from line 10 in file C:/xampp/htdocs/kingofgrinders/ex27.ring
Class Database
cServer = "localhost"
cUserName = "root"
cPassword = "root"
cDatabase = "mahdb"Basically I want to create my own Text based MMORPG game, something like syrnia, lyrania, manapot, gates of survival.
Hello Harry
Revise the next information in datalib.ringClass Database
cServer = "localhost"
cUserName = "root"
cPassword = "root"
cDatabase = "mahdb"
Just be sure you have the correct username and password
And the correct database name (MySQL)
Greetings,
Mahmoud
cTemp = Template("sendfgtpwdmail.html",self)New Page
{
cTemp = Template("sendfgtpwdmail.html",self)
# .....
# .....
<%= %><%= "Send email..." + nl %><%= "Done.." + nl %>New Page
{
# .....
}
eval Line (19) Error (C8) : Parentheses ')' is missing Content-Type: text/plain Content-Type: text/plain eval errors count : 1 Content-Type: text/plain Line 164 Error in eval! In eval In function template() in file weblib.ring called from line 9 in file C:/xampp/htdocs/kingofgrinders/forgotpassword.ring
EDIT 2 - i edited the code in forgotpassword.ring and remove the unnecessary box code from it (reuploaded it on git), now error is changed it is this now . I made sure that password i typed in my html file is correct and email addresses too. Not sure about smtp, i wrote it same as you said... "smtp://smtp.gmail.com:587",
Line 12 Login denied In sendemail In function template() in file weblib.ring called from line 9 in file C:/xampp/htdocs/kingofgrinders/forgotpassword.ring--------------------------------------------------------------------------------------------------------------------------------------EDIT 3 - LOl i got an email regarding login attempt from less secure app, and gmail blocked it, maybe that was the reason, i turned on the less secure app logins now.. Now its good and working :) It says this nowContent-type: text/htmlNew Page { Send email... Done.. }Any way to remove the content type: text/html message? I dont want to send CC message so for time being i used my own senders email in that section. But is their any way to stop sending that cc message? And for some reason ex25.ring doesn't work on my system, can you please take a look on that as well and resolve its errors.... its on my github repository as well. Error thrown by him is this :-Line 340 Error (R20) : Calling function with extra number of parameters! In method hiddenvars() in file datalib.ring called from line 340 In method gridview() in file datalib.ring called from line 247 In method showtable() in file datalib.ring called from line 213 In method routing() in file datalib.ring called from line 11 in file C:/xampp/htdocs/kingofgrinders/ex25.ringAlso to make things dynamic now i want to fetch email directly from forgotpassword.ring file and enter it in sendfgtpwdmail.html file directly in the place of Receivers email... , and also the fgtpwd word in database to the message of the email. How can i accomplish this? Another problem is that change password button should be shown below as its coded afterwards but change password button is shown upwards and the message of username and email matching is shown below, but i coded it first however. Please provide solution for this as well.
EDIT 4 - Never mind, corrected the problem of up and down. Now remaining problems are fetching email from forgotpassword.ring to sendfgtwpdmail.html and make content dynamic there for email message and recipients email. and that content type:text/html message is annoying lol please get it out of my screen, ex25.ring throwing above said error, and removing cc recipient.EDIT 5 - Its cool now the current github code of sendfgtpwdmail.html is able to get email and fgtpwd from forgotpassword.ring file as well. But i cant put it in sendemail function by any way, please suggest something for that. I can see them via see commands only i.e. <%=a%> but when i write this in sendemail section for respective email and fgtpwd then it throws errors. I tried using brackets, inverted commas etc. but nothing worked.Other problems still stays as well i.e. ex25.ring, and that content type:text/html message on the forgotpassword.ring page in browser. Also removing cc in sendemail function seems impossible. Following is screenshot of that message :-
CREATE DATABASE `kingofgrinders`;
USE kingofgrinders ;Line 97 Error in first parameter, input size < 1 ! In input In function loadvars() in file weblib.ringcalled from line 88 in file C:/Ring/harry/changepassword.ring Line 97 Error in first parameter, input size < 1 !
To avoid the error message
Just run the Ring source file from the web browser.
Greetings,
Mahmoud
The file is correct, keep up the good work
Hello Gal
In Ring documentation, web development chapter, You will see how to use Apache web server with Ring, just follow the steps in the documentation.
Greetings,
Mahmoud
formstart("MainGamePageUI.ring")
divstart([ :style= styletextcenter() + stylegradient(52) ])
submit([:value = "Lets Play" ])
formend()
divend()Func checkuser
oUser = new UsersModel
oUser.Connect()
lResult = oUser.FindWith("sessionid",aPageVars["sessionid"])
new page {
if lResult
text("User Name : " + oUser.username )
else
text("Please Login First!")
ok
}
oUser.Disconnect()
BootStrapWebPage() { Title = "The Ring Programming Language" html(template("main.rhtml",NULL)) div { classname = :container div { id = "div3" color = "black" backgroundcolor = "white" width = "100%" form { method = "POST" Action = website Target = "codeoutput" input { type="hidden" name="page" value=1 } Table { style = stylewidth("100%") + stylegradient(3) TR { TD { align="center" WIDTH="10%" text("Code :") } TD { html(`<textarea name = "cCode" rows="5" style="width : 100%; ">See "Hello, World!" + nl</textarea>`) } } } Input { type = "submit" classname="btn btn-primary btn-block" value = "Execute" } Table { style = stylewidth("100%") + stylegradient(34) TR { TD { align="center" WIDTH="10%" text("Output :") } TD { html(`<iframe name="codeoutput" width="100%" style="background-color:white;"></iframe>`) } } }
} }
} html(template("footer.rhtml",NULL)) }cValue = "Hello"
if len(cValue) <= 30
see "Good"
else
see "Extra letters!"
ok
1. Converted my page format to the bootstrapwebpage and added that iframe thing.... But still cant do anything in it. On typing and clicking on button it gives server error.... Please check whats wrong with it now?