PongoCMS-Laravel-cms-bundle icon indicating copy to clipboard operation
PongoCMS-Laravel-cms-bundle copied to clipboard

Your latest version from the master branch is failing to install

Open yovchev opened this issue 12 years ago • 9 comments

I try to install it and is fails on allot of places when fix one something else is failing.

why you pushing changes to the master branch without testing them ?

yovchev avatar Feb 03 '13 19:02 yovchev

I get this error when trying to install pongo:

php artisan cms::setup SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homepage.pongo_files' doesn't exist

SQL: INSERT INTO pongo_files >VALUES(1,'fabio_fumis.jpg','jpg',50647,480,480,'/files/img/fabio_fumis.jpg','/files/img/thu mb/fabio_fumis_thumb.jpg',1,1,'2012-07-10 15:17:52','2012-07-10 15:17:52')

Bindings: array ()

Only "pongo_laravel_migrations" table is shown on database.

Latest Laravel is up and running (xampp, mysql) before I try to install pongo.

pevete avatar Feb 03 '13 21:02 pevete

  1. Change from editor to string is no function editor on the Table object migrations/2012_07_10_231143_create_users.php - line 21
  2. $table->editor('editor', 20);
  3. $table->string('editor', 20);
  4. Change the ; whit , migrations/2012_07_10_231143_create_users.php - line 37
  5. 'editor' => array_keys(Config::get('cms::settings.editor'))[0];
  6. 'editor' => array_keys(Config::get('cms::settings.editor'))[0],
  7. run php artisan migrate
  8. Put the ; after line 80 tasks/setup.php - line 80 -$sw_path = path('bundle').'swiftmailer' +$sw_path = path('bundle').'swiftmailer';
  9. change this line libraries\cmsutility.php - line 159
  10. if( array_key_exists($segments[1], Config::get('cms::settings.langs')) ) {
  11. if( isset($segments[1]) AND array_key_exists($segments[1], Config::get('cms::settings.langs')) ) {

yovchev avatar Feb 04 '13 03:02 yovchev

It should be fixed now. Pls check last commit.

Il giorno 03/feb/2013, alle ore 22:32, pevete [email protected] ha scritto:

I get this error when trying to install pongo:

php artisan cms::setup SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homepage.pongo_files' doesn't exist

SQL: INSERT INTO pongo_files >VALUES(1,'fabio_fumis.jpg','jpg',50647,480,480,'/files/img/fabio_fumis.jpg','/files/img/thu mb/fabio_fumis_thumb.jpg',1,1,'2012-07-10 15:17:52','2012-07-10 15:17:52')

Bindings: array ()

Only "pongo_laravel_migrations" table is shown on database.

Latest Laravel is up and running (xampp, mysql) before I try to install pongo.

— Reply to this email directly or view it on GitHub.

redbaron76 avatar Feb 04 '13 11:02 redbaron76

Nice thank you redbaron76

can you check this because is failing on fresh installation. i think you need to cheek if issset because on / is failing

\bundles\cms\libraries\cmsutility.php on line 159

  • if(array_key_exists($segments[1], Config::get('cms::settings.langs'))) {
  • if(isset($segments[1]) AND array_key_exists($segments[1], Config::get('cms::settings.langs'))) {

yovchev avatar Feb 04 '13 12:02 yovchev

Nice thank you readbaron76

can you check this \bundles\cms\libraries\cmsutility.php on line 159

i think you can cheek if isset before array_key_exists http://paste.laravel.com/gE3

yovchev avatar Feb 04 '13 12:02 yovchev

Nice thank you readbaron76 cheek this... http://paste.laravel.com/gE6

yovchev avatar Feb 04 '13 12:02 yovchev

Nice thank you readbaron76 cheek this... paste . laravel . com / gE6

yovchev avatar Feb 04 '13 12:02 yovchev

Nice thank you readbaron76 can you cheek this i think is bug bug

yovchev avatar Feb 04 '13 12:02 yovchev

After updating pongo with latest commits there is no more error message like above, but I can't see any content.. only 404 error message.

/CMS is working..not well, but at least I can access it. I tried to create new gallery and I got many error messages. Like: >/cms/ajax_gallery/save_gallery

Unhandled Exception

Message: Undefined index: back_url Location: E:\xampp\www\testpage\bundles\cms\controllers\ajax_gallery.php on line 93

I also got empty page with this message when there were spaces in gallery name:

{"messages":{"gallery_name":["Name cannot contain spaces."]},"format":":message"}

pevete avatar Feb 04 '13 16:02 pevete