jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 207 forks source link

after Builder execution hung #225

Open spankrat opened 8 years ago

spankrat commented 8 years ago

While testing Phreeze I encountered the following problem.. I used the builder to build an app based on a populated table called FACTABLE. When I tried to access the created CRUD screen it seem to get hung in the loading stage. And the striped progress bar just keeps going and going.. like its in a endless loop. And none of the data is ever displayed.. Do you have any pointers as to figure out what is going on... oh and this happens with each of the tables in this database..

phreeze

jasonhinkle commented 8 years ago

Hmm, if you can look at the developer console network activity - there probably will be an error message showing in the response from the api. You might also be able to see it by just going to this url to view the API output directly:

localhost/timepermit/api/factables

spankrat commented 8 years ago

Going to url "localhost/timepermit/api/factables" gave me a screen full of good Data Pairs from the database! with No ERRORS!! looking for errors from the API in the developer Console...

spankrat commented 8 years ago

Below find a screen shot of the errors and a screen shot of where the error is in the model.js and it is in a table that I am not even using... weird...

error in model_js

factable errors

jasonhinkle commented 8 years ago

ah it appears that your column names have spaces in them. I thought the builder handled that but apparently not. If you are able to change your column names and remove the spaces that'll make things simpler for you - you could then just re-generate. If not, you would have to edit the model.js file and your mapping files to give those columns some other name (like using an underscore or whatever you like)

gitdavidhunter commented 8 years ago

Same issue - different error.

Output from : http://localhost/cfasmain/api/factables

{"success":false,"message":"An unknown API endpoint was requested.","errors":[]}