Can Jcow installed locally for testing? |
| |||
I installed jcow at remote server, it is working. However, I encountered many problems while installed locally. Many are due to "null" value in the table. I am also aware '$testing=1' at the install.php but I did not see it is further used in the code. In addtion, is_local at /my/config.php is not used. What this variable for? Thanks in advance.
|
| |||
|
| |||
I downloaded 3.30 and it is a brandnew installation. Any other things to consider? Thanks
|
| |||
The thing I don't understand is:
Why the insert is working at hosting server but not my local server? For example, a stream publish only provides (uid,message,created). it worked at hosting server but not my local server. Many similar problems. Is this because hosting server using a 'non-strict' sql mode which allows (or auto fill) null values?
|
| |||
I am frustrated no people from jcow team to answer questions.
|
| |||
install at wamp server it will work fine ... 2.0c I'm using at my windows 7 (home) windows vista (work) nothing is gone wrong exept for changing php to accept short tags !!! I think in linux if u use Linux php apache server it will work fine I installed a copy to my friend in UBUNTU 4 weeks ago to his local company it works very fine !!! so specify ur problem so we can help!!!!
|
| |||
thanks adil. My question is very simple.
And I check the other file, the data.sql at /install directory which is read to create the table does not provide default values for many fields. For example, Points at jcow_accounts, wall_id at jcow_streams. Problem #1: Problem #2: Therefore, why these operations are working at the hosting server? And could any JCOW team people point out why we don't have default values at data.sql? Any specific reason.
|
| |||
In other words, my questions are very specific:
Example 1, register a new user at homepage, if you trace the code, you see no wall_id, no Points ect are provided at insert therefore it fails. Example 2, use admin account to submit "what is in your mind"? Only (uid,message,created) are provided at INSERT, other fields are not and they do not have default values. That makes insert fails. Or very basic or simple, why we don't have default values for NOT NULL fields at data.sql. Is there a specific reason?
|
| |||
you gave the answer already yourself i think. locally you are using the strict sql mode.
|
| |||
i have a local test board running under XAMPP and jcow works fine with the only alteration needed the allow short tags like Adil says. I created a blank database and ran the install script locally, then once that is done go to phpmyadmin and drop all tables and import a copy of the db from my live online site.
|
| |||
i did a test, and i put my xammp server in strict mode and i got errors. Every not null field should have a default value.
|
| |||
thanks for all of you sharing. I guess we have to use non strict mode because we can not provide default for some fields (text/bolb).
|