⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Error on Installation



looi76
  • profile picture
  • Member

Posted 07 February 2012 - 07:00 AM

I followed installation guide but I'm still encountering this error. Can someone please help me?

[img]http://www.pixentral.com/pics/1KzO6jB5y81C9vIkPJDQJbu1gIWkC1.png[/img]

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 07 February 2012 - 07:05 AM

/topic/128-where-to-put-these-files/page__p__438#entry438

looi76
  • profile picture
  • Member

Posted 07 February 2012 - 07:31 AM

I followed those steps but still ended up with this error :( .

And I get this page when I visit the main.php file. It seems like the installation files are all there & configured.

[img]http://www.pixentral.com/pics/1phBykVxIpeQuOIPoNTwe9aSy9HWe0.png[/img]

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 07 February 2012 - 08:02 AM

Something goes wrong with your codeigniter, try to install it from the beginning. What CI do you use? PHP version? If you follow the instructions it should work.

Please try it from the beginning by downloading by new the codeigniter project and try again to install grocery CRUD in a brand new project.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 07 February 2012 - 08:03 AM

PS. @lloi76 I have an uploader for your images to the forum just click the "More Reply Options"

MichaelH
  • profile picture
  • Member

Posted 09 February 2012 - 19:13 PM

Hi,

The problem is in the main.php code on this page:

http://www.grocerycrud.com/crud/view/create-crud-codeigniter-tutorial

main.php is displayed 3 times.

1) basic setup: welcome ...
2) database setup: look at function __construct():

[color=#000000][b]function[/b][/color] __construct[color=#009900]([/color][color=#009900])[/color]
[color=#009900]{[/color]
parent[color=#339933]::[/color]__construct[color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]

[color=#666666][i]/* Standard Libraries of codeigniter are required */[/i][/color]
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]database[/color][color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]helper[/color][color=#009900]([/color][color=#0000ff]'url'[/color][color=#009900])[/color][color=#339933];[/color]
[color=#666666][i]/* ------------------ */[/i][/color]

[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]library[/color][color=#009900]([/color][color=#0000ff]'grocery_crud'[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
3) ...go to our controller and add some more stuff. THE LINE:

[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]library[/color][color=#009900]([/color][color=#0000ff]'grocery_crud'[/color][color=#009900])[/color][color=#339933];[/color]
IS NOT IN THE 3rd VERSION!--and the code won't run w/o the above line added back in.

I got the same error myself.

:-)
regards,
MichaelH