Hi.
I install combu in my webserver ( http://**********/testecombuedu/admin/) and localy with xampp ( http://localhost/combu/admin/) and both are working fine from Google Chrome, but when I try run the demo inside Unity 5.3.2.f1 I geting an error:
UnityEngine.Debug:Log(Object)
Combu.c__Iterator1:MoveNext() (at Assets/Combu/Scripts/CombuManager.cs:409)
Failed to get Combu server info
UnityEngine.Debug:LogError(Object)
Combu.CombuManager:m__3C(Boolean, CombuServerInfo) (at Assets/Combu/Scripts/CombuManager.cs:308)
Combu.c__AnonStorey26:<>m__3F(String, String) (at Assets/Combu/Scripts/CombuManager.cs:591)
Combu.c__Iterator1:MoveNext() (at Assets/Combu/Scripts/CombuManager.cs:411)
Any ideas?
On your webserver I noticed a PHP notice about an issue writing the app log, may be you didn't create the folder /_logs or it hasn't the write permission. To see yourself just enable the checkbox Log Debug Info and copy&paste the URL you see in the console log (but if you enable Use Stage and set the proper Url Root Stage it should connect correctly to your local machine, else you have to set write permission locally too especially if you're running OSX).
PS: I edited your message and obscured your server address for security reasons.
FRANCESCO CROCETTI @ SKARED CREATIONS
Hi.
I did not undestand the solution.
Production mode:
Log:
Sending: http://d s.com.br/testecombuedu/server.php?action=info&sig_time=635918224807838038&sig_crc=acb465df426ce514b737b70c40570eca75a1eaad
UnityEngine.Debug:Log(Object)
Combu.<DownloadUrl>c__Iterator1:MoveNext() (at Assets/Combu/Scripts/CombuManager.cs:389)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
Combu.CombuManager:CallWebservice(String, WWWForm, Action`2) (at Assets/Combu/Scripts/CombuManager.cs:355)
Combu.CombuManager:GetServerInfo(Action`2) (at Assets/Combu/Scripts/CombuManager.cs:578)
Combu.CombuManager:Start() (at Assets/Combu/Scripts/CombuManager.cs:299)
If I copy&past the log url I get this message from Chrome:
PHP Warning: file_put_contents(E:homed*sWebTestecombuedu/_logs/applog.log) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in E:homedeck16webgamesWebTestecombuedulibAppLog.php on line 30 Stage Mode: Log: Sending: http://localhost/combu/server.php?action=info&sig_time=635918228594356044&sig_crc=b6b2fe022fcba344bcd518bb7739aa2dfa1a81e5 UnityEngine.Debug:Log(Object) Combu.<DownloadUrl>c__Iterator1:MoveNext() (at Assets/Combu/Scripts/CombuManager.cs:389) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) Combu.CombuManager:CallWebservice(String, WWWForm, Action`2) (at Assets/Combu/Scripts/CombuManager.cs:355) Combu.CombuManager:GetServerInfo(Action`2) (at Assets/Combu/Scripts/CombuManager.cs:578) Combu.CombuManager:Start() (at Assets/Combu/Scripts/CombuManager.cs:299) If I copy&past the log url in webserver I get this message from Chrome: Unauthorized request The log created in _logs folder is: 23/02/2016 14:57:58 [INFO] Unauthorized CRC: fa9beb99e4029ad5a6615399e7bbae21356086b3 - Signature: - Saved Timestamp: - Timestamp: - Id: 0 - GUID: But I can login as administrator in both. I am using Windows 10 In the production mode the _logs folder and the .settings folder do not exist in my webserver. Could be a write permission problem.. Do I need to set permissions on my webserver or authorize from Unity? In local mode I do not have idea why do not work. Sorry, is a lot of questions, but I am kind new in database connection. Regards
edufurla said
In the production mode the _logs folder and the .settings folder do not exist in my webserver.
Could be a write permission problem.. Do I need to set permissions on my webserver
It's exactly what I said, if there's no folder called _logs on production then you must create it and it must have WRITE permission, usually you can do this in Filezilla (create the folder and then right click on it) or if your provider has a file manager installed in your domain control panel.
About the error in localhost it's pretty strange unless you have a different secret key, what version of Combu are you using and what is the target deploy platform?
FRANCESCO CROCETTI @ SKARED CREATIONS
I created the two folders in my web server and I was getting same error.
Them I deleted and reinstall combu in Unity and everything works fine now - in localhost and in my webserver.
Thank you for your help.