Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Won't run in sandbox (model missing)

[FIXED] Won't run in sandbox (model missing) 03 Sep 2012 11:18 #3361

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hi,

I am trying to run my application in the sandbox and it won't run. I get a blank screen when I try to access the site side and I do not see any view from the admin side.

I tried to download and install my application on my development site, but I get the same results there. It seems that cook does not build appropriately the sql script. The script is missing one or more "create table" statements.

Thanks,

José
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:08 #3376

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Anyone has got a similar problem?

I have three applications in cook, the other 2 do appear in the sandbox. Any idea on what could be the problem?

Thanks,

José
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:17 #3377

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Did you tried to flush the dataset ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:42 #3379

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Yes, I did try flushing the dataset. But I still get that blank screen when I try to go to the site side.

José
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:02 #3380

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Wich project ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:09 #3381

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Ok, I got it.

Downloaded, checked PHP errors, ...

Your table 'groupes' is not saved.

Good catch, I definitifly need a validator that controls if the tables are saved before to generate.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:51 #3382

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Wow you are pretty good. I had more than one unsaved tables. I never really paid attention to it. It does show the site side now.

Thanks,

José
The administrator has disabled public write access.

No save nor new function generated 04 Sep 2012 18:53 #3383

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hi again,

Don't know if I should open a new topic, but as it may be related to the previous problem, I will post here.

There is no code generated for the "New" nor for the "Save" functions neither in the controllers nor in the view.html.php files even if the buttons appear in cook.

I tried :
  1. Removing the buttons and reinserting them in the toolbar
  2. Removing the toolbar from the layout and reinserting it
  3. Deleting and rebuilding the view
without success.

So I downloaded the component and looked through the code. The functions save() and new() do not exist.

Have you seen this before?

Thanks again
The administrator has disabled public write access.

Re: No save nor new function generated 06 Sep 2012 10:16 #3389

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Is anyone facing a similar issue?

Even if the tasks ("Save" and "New") are present in the toolbar, the code is not generated neither in the view.html.php file nor in the controller. Only the code for tasks "Delete" and "Cancel" is generated.

This is true for every view (or table in Cook). Here is a list of the generated functions in all of my controllers (there is 9 controllers in my component):
  • function __construct($config = array())
  • function display( )
  • function delete()
  • function cancel()
  • function publish()
  • function unpublish()
  • function orderup()
  • function orderdown()
  • function saveorder()

Is this a know symptom?

Do I have to begin my project over again?

Thanks,

José
The administrator has disabled public write access.

Re: No save nor new function generated 06 Sep 2012 10:24 #3391

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 985
  • Karma: 140
Please give me some time to solve this.

V2.0 is on the corner, I have to finish it.
It will solve all this because almost 100% rewritted.

After that, for those who wants to stay on 1.5 for a while, I will have a look on this issue.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: No save nor new function generated 24 Sep 2012 13:28 #3950

  • jroberge
  • jroberge's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hello admin,

I tried to generate my project with the version 2, but I get the same forms, without the possibility of adding any record. There is only one button available: Delete.

Why is that?
The administrator has disabled public write access.
Time to create page: 0.185 seconds

Get Started