Update from 3.5 to 3.8 problem

140 views
Skip to first unread message

Artyom M

unread,
Nov 27, 2014, 3:38:49 AM11/27/14
to koala-fra...@googlegroups.com
Niko,

Today I'm trying to update my web-app from 3.5 to 3.8 and now I have errors:

Warning: require(vendor/koala-framework/koala-framework/Kwf/Setup.php): failed to open stream: No such file or directory in /var/www/portal1/bootstrap.php on line 9

Fatal error: require(): Failed opening required 'vendor/koala-framework/koala-framework/Kwf/Setup.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/portal1/bootstrap.php on line 9


Console log in attach file - log.txt
What is wrong?
log.txt

Artyom M

unread,
Nov 27, 2014, 7:32:22 PM11/27/14
to koala-fra...@googlegroups.com
Something wrong in paths.

In bootstrap.php:
require 'vendor/koala-framework/koala-framework/Kwf/Setup.php';

must be:
require_once 'kwf-lib/Kwf/Setup.php';

After this change I get more errors:
root@ubuntu:/var/www/portal1# php bootstrap.php clear-cache
PHP Warning:  include(vendor/composer/autoload_namespaces.php): failed to open stream: No such file or directory in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 38
PHP Warning:  include(): Failed opening 'vendor/composer/autoload_namespaces.php' for inclusion (include_path='.:/var/www/portal1/kwf-lib:vendor/koala-framework/zendframework1/library') in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 38
PHP Warning:  include(vendor/composer/autoload_classmap.php): failed to open stream: No such file or directory in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 42
PHP Warning:  include(): Failed opening 'vendor/composer/autoload_classmap.php' for inclusion (include_path='.:/var/www/portal1/kwf-lib:vendor/koala-framework/zendframework1/library') in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 42
PHP Warning:  include(Zend/Registry.php): failed to open stream: No such file or directory in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 84
PHP Warning:  include(): Failed opening 'Zend/Registry.php' for inclusion (include_path='.:/var/www/portal1/kwf-lib:vendor/koala-framework/zendframework1/library') in /var/www/portal1/kwf-lib/Kwf/Loader.php on line 84
PHP Fatal error:  Class 'Zend_Registry' not found in /var/www/portal1/kwf-lib/Kwf/Util/Setup.php on line 21

Artyom M

unread,
Nov 27, 2014, 10:13:20 PM11/27/14
to koala-fra...@googlegroups.com
Today I'm tried to migrate from 3.5 to 3.7.


Errors:
C:\OpenServer\domains\aviashelf1>php bootstrap.php clear-cache

wrote offline bootstrap.php

[ 1/12] clearing events... OK (0ms)
[ 2/12] clearing model.... OK (17ms)
[ 3/12] clearing simple... OK (27ms)
[ 4/12] clearing table.... OK (0ms)
[ 5/12] clearing config... OK (1ms)
[ 6/12] clearing setup.... OK (0ms)
[ 7/12] clearing trl...... OK (2ms)
[ 8/12] clearing assets... OK (33ms)
[9/12] refreshing config. OK (69ms)
[10/12] refreshing setup.. OK (95ms)
[11/12] refreshing trl.... OK (2ms)
[12/12] refreshing assets. exception 'Kwf_Exception' with message 'Can't find dependency 'Components'' in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\Provider\Ini.php:37
Stack trace:
#0 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\ProviderList\Abstract.php(30): Kwf_Assets_Provider_Ini->getDependency('FrontendIniDep')
#1 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\Provider\IniNoFiles.php(10): Kwf_Assets_ProviderList_Abstract->findDependency('FrontendIniDep')
#2 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\ProviderList\Abstract.php(30): Kwf_Assets_Provider_IniNoFiles->getDependency('Frontend')
#3 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\Package.php(22): Kwf_Assets_ProviderList_Abstract->findDependency('Frontend')
#4 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\Package.php(66): Kwf_Assets_Package->getDependency()
#5 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Assets\Package.php(137): Kwf_Assets_Package->_getFilteredUniqueDependencies('text/javascript')
#6 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Util\ClearCache\Types\Assets.php(49): Kwf_Assets_Package->getPackageUrls('text/javascript', 'ru')
#7 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Util\ClearCache\Types\Abstract.php(26): Kwf_Util_ClearCache_Types_Assets->_refreshCache(Array)
#8 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Util\ClearCache.php(232): Kwf_Util_ClearCache_Types_Abstract->refreshCache(Array)
#9 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action\Cli\ClearCacheController.php(22): Kwf_Util_ClearCache->clearCache(Array)
#10 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Cli_ClearCacheController->indexAction()
#11 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Dispatcher\Standard.php(295): Kwf_Controller_Action->dispatch('indexAction')
#12 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Front.php(953): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#13 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Front.php(142): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#14 C:\OpenServer\domains\aviashelf1\bootstrap.php(20): Kwf_Controller_Front->dispatch()
#15 {main} [ERROR] (173ms)

App works with errors. Better then nothing =)

How to fix error with 'Components' dependency?

Niko Sams

unread,
Nov 28, 2014, 2:27:42 PM11/28/14
to Koala Framework Dev
On Fri, Nov 28, 2014 at 4:13 AM, Artyom M <psycho...@gmail.com> wrote:
Today I'm tried to migrate from 3.5 to 3.7.
Yes, probaby a good idea to upgrade to 3.7 first, once you have that runnig again upgrade to 3.8 (which is quite different what regarding composer etc)
please add this to your dependencies.ini: 
Frontend.dep[] = false

This should fix the error.

we have two standard dependencies Frontend and Admin. Frontend is used when you have a component based frontend, admin is used for the backend.
If you have an app-only project (as in your case) you don't need frontend dependencies at all, thus you have to disable them.
In ealier versions this was disabled in config.ini (assets.Frontend or something) but that changed.

Niko

Niko Sams

unread,
Nov 28, 2014, 2:36:37 PM11/28/14
to Koala Framework Dev
On Fri, Nov 28, 2014 at 1:32 AM, Artyom M <psycho...@gmail.com> wrote:
Something wrong in paths.
Let me explain what changed for kwf 3.8:
- we now use composer (plus nodejs & npm) for installing dependencies. 
- kwf now has a build step

that means for 3.8 you can dump the library repositroy alltogether and also delete kwf-lib - both will be downloaded by composer into vendor subfolder.

Niko

Artyom M

unread,
Nov 28, 2014, 11:35:12 PM11/28/14
to koala-fra...@googlegroups.com
>In ealier versions this was disabled in config.ini (assets.Frontend or something) but that changed.
Found:
assets.Frontend.Frontend = false

>please add this to your dependencies.ini: 
>Frontend.dep[] = false
>This should fix the error.
It fix error with clear-cache and Ini.php-file but all controllers in my app show return 404 error:
"NetworkError: 404 Not Found - http://aviashelf1/flightplans/json-data"

<h2>404 - File not found</h2>
<p>The requested URL "/flightplans/json-data" was not found on this server.</p>

How to fix?

Also login page shows two strange links. See login.jpg.
login.JPG

Niko Sams

unread,
Nov 29, 2014, 1:20:14 PM11/29/14
to Koala Framework Dev
On Sat, Nov 29, 2014 at 5:35 AM, Artyom M <psycho...@gmail.com> wrote:
It fix error with clear-cache and Ini.php-file but all controllers in my app show return 404 error:
"NetworkError: 404 Not Found - http://aviashelf1/flightplans/json-data"
ah, I think I know what's the issue here: from 3.7 on you can not have a default module, instead all controllers need to be in an named module.
See this as an example how to convert that:

I'm really sorry about that inconvenience. But in practice it's nicer anyway to group everything into several modules.

If you really don't want to change your code you could also try to configure the zend routes differently - though I can't help you with that - and it's rather complicated :D
 
Also login page shows two strange links. See login.jpg.
those are benchmark tools - don't make any sense here but also don't hurt.
they won't show up if you set the config as you would on production:
debug.benchmark = false
debug.error.log = true


Niko

Artyom M

unread,
Nov 30, 2014, 2:21:32 AM11/30/14
to koala-fra...@googlegroups.com
I change and transfer some files and now have error:

exception 'Kwf_Exception_NotFound' with message 'Not found' in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action\Error\ErrorController.php:15
Stack trace:
#0 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Error_ErrorController->errorAction()
#1 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Dispatcher\Standard.php(295): Kwf_Controller_Action->dispatch('errorAction')
#2 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Front.php(953): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Http), Object(Kwf_Controller_Response_Http))
#3 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Front.php(142): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Http), Object(Kwf_Controller_Response_Http))
#4 C:\OpenServer\domains\aviashelf1\bootstrap.php(20): Kwf_Controller_Front->dispatch()
#5 {main}


What problem about indexAction?

Niko Sams

unread,
Nov 30, 2014, 5:00:01 AM11/30/14
to Koala Framework Dev
On Sun, Nov 30, 2014 at 8:21 AM, Artyom M <psycho...@gmail.com> wrote:
I change and transfer some files and now have error:
what do you mean by that?
change like I did in the linked kwf-app-demo commit?

make sure you have:
- the correct controller class name
- url
- and acl resource name
(all 3 have to match)

Niko

Artyom M

unread,
Dec 1, 2014, 1:35:59 AM12/1/14
to koala-fra...@googlegroups.com
>what do you mean by that?
>change like I did in the linked kwf-app-demo commit?
Yes.


Some small controllers change normal, but some shows me error:

exception 'Kwf_Exception' with message 'Column "pos" must not be of type TINYINT in table "employeeStaffRoles"' in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Model\Db.php:63
Stack trace:
#0 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Model\Db.php(1421): Kwf_Model_Db->getColumnType('pos')
#1 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Model\Db\Row.php(45): Kwf_Model_Db->convertValueType('pos', '1')
#2 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Field\MultiFields.php(216): Kwf_Model_Db_Row->__get('pos')
#3 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Field\Abstract.php(156): Kwf_Form_Field_MultiFields->load(Object(Row_Employee), Array)
#4 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Container\Abstract.php(161): Kwf_Form_Field_Abstract->load(Object(Row_Employee), Array)
#5 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Field\Abstract.php(156): Kwf_Form_Container_Abstract->load(Object(Row_Employee), Array)
#6 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Container\Abstract.php(161): Kwf_Form_Field_Abstract->load(Object(Row_Employee), Array)
#7 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Field\Abstract.php(156): Kwf_Form_Container_Abstract->load(Object(Row_Employee), Array)
#8 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Form\Container\Abstract.php(161): Kwf_Form_Field_Abstract->load(Object(Row_Employee), Array)
#9 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action\Auto\Form.php(97): Kwf_Form_Container_Abstract->load(NULL)
#10 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Auto_Form->jsonLoadAction()
#11 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Dispatcher\Standard.php(295): Kwf_Controller_Action->dispatch('jsonLoadAction')
#12 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Front.php(953): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Http), Object(Kwf_Controller_Response_Http))
#13 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Front.php(142): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Http), Object(Kwf_Controller_Response_Http))
#14 C:\OpenServer\domains\aviashelf1\bootstrap.php(20): Kwf_Controller_Front->dispatch()
#15 {main}

Why KWF 3.7 don't like TINYINT types?


Artyom M

unread,
Dec 1, 2014, 1:38:47 AM12/1/14
to koala-fra...@googlegroups.com
When I change the data type from TINYINT to INT - everything works fine =))

Niko Sams

unread,
Dec 1, 2014, 2:17:58 AM12/1/14
to Koala Framework Dev

Yes, that is the correct fix. Tinyint is interpreted as boolean.

Am 01.12.2014 07:38 schrieb "Artyom M" <psycho...@gmail.com>:
When I change the data type from TINYINT to INT - everything works fine =))

--
You received this message because you are subscribed to the Google Groups "Koala Framework Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to koala-framework...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Artyom M

unread,
Dec 2, 2014, 11:53:54 PM12/2/14
to koala-fra...@googlegroups.com
I'm update my app to 3.8. Not of all works properly.

1. How to change theme to extreme-gray?

in dependencies.ini I had a line
Admin.files[] = ext/resources/css/xtheme-gray.css
but app not working with it (now commented and app have default blue style).

2. 404 error in 


where this file?

4. Clear-cache writes me "build folder doesn't exist"

In which folder create it?

3. What folders can I delete now? kwf-lib? library?


My update log and dependecies.ini in attach.

P.s. Login page looks nice =)) 
I want all app in this style ;)

log.txt
dependencies.ini

Artyom M

unread,
Dec 3, 2014, 1:39:37 AM12/3/14
to koala-fra...@googlegroups.com
Some more...

5. Long filepaths is looooong. In windows not working.

See filepaths.jpg in attach.

6. Where is PHPExcel now?

If i requere this library - error:

<b>Warning</b>:  Uncaught exception 'ErrorException' with message 'require_once(%libraryPath%/phpexcel/1.8.0/PHPExcel.php): failed to open stream: No such file or directory' in /var/www/portal1/controllers/FormEx.php:44
Stack trace:
#0 /var/www/portal1/controllers/FormEx.php(44): Kwf_Debug::handleError(2, 'require_once(%l...', '/var/www/portal...', 44, Array)
#1 /var/www/portal1/controllers/FormEx.php(44): Kwf_Controller_Action_Auto_Form_Ex::jsonXlsAction()
#2 /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Controller/Action.php(33): Kwf_Controller_Action_Auto_Form_Ex->jsonXlsAction()
#3 /var/www/portal1/vendor/koala-framework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Kwf_Controller_Action->dispatch('jsonXlsAction')
#4 /var/www/portal1/vendor/koala-framework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Http), Object(Kwf_Controller_Response_Http))
#5 /var/www/portal1/vendor/koala-framework/koala-framewor in <b>/var/www/portal1/controllers/FormEx.php</b> on line <b>44</b><br />
<br />
<b>Fatal error</b>:  Kwf_Controller_Action_Auto_Form_Ex::jsonXlsAction(): Failed opening required '%libraryPath%/phpexcel/1.8.0/PHPExcel.php' (include_path='/var/www/portal1/vendor/koala-framework/zendframework1/library:.:app:controllers:models:components:themes') in <b>/var/www/portal1/controllers/FormEx.php</b> on line <b>44</b><br />
filepaths.JPG

Niko Sams

unread,
Dec 3, 2014, 2:00:34 AM12/3/14
to Koala Framework Dev
On Wed, Dec 3, 2014 at 5:53 AM, Artyom M <psycho...@gmail.com> wrote:
I'm update my app to 3.8. Not of all works properly.

1. How to change theme to extreme-gray?

in dependencies.ini I had a line
Admin.files[] = ext/resources/css/xtheme-gray.css
but app not working with it (now commented and app have default blue style).

that's probably because all css classes switched from x- to x2-.
reason for that is so we can mix with other extjs versions.
 
2. 404 error in 


where this file?
hm, I think I also have seen this error, but didn't have a detailed look.
 

4. Clear-cache writes me "build folder doesn't exist"

In which folder create it?
well, you need to execute the build step:

I think current 3.8 branch will have some issues building on windows. I do have some fixes waiting to be merged tough:
will be ready next week or so.
 

3. What folders can I delete now? kwf-lib? library?
yes, both of them.

Niko

Niko Sams

unread,
Dec 3, 2014, 2:03:11 AM12/3/14
to Koala Framework Dev
On Wed, Dec 3, 2014 at 7:39 AM, Artyom M <psycho...@gmail.com> wrote:
Some more...

5. Long filepaths is looooong. In windows not working.

See filepaths.jpg in attach.
hm. I have no idea what to do about that.
maybe you could do some research?
 

6. Where is PHPExcel now?

If i requere this library - error:
all libraries must be loaded using composer now.
add the required libraries to composer.json and execute composer update

you can find packages on packagist.org - and read the composer manual :D

Niko

Artyom M

unread,
Dec 4, 2014, 2:37:10 AM12/4/14
to koala-fra...@googlegroups.com
>that's probably because all css classes switched from x- to x2-.
>reason for that is so we can mix with other extjs versions.
Solved.
1. php bootstrap.php build
2. Admin.files[] = ext2/resources/css/xtheme-gray.css in dependencies.ini 

>hm, I think I also have seen this error, but didn't have a detailed look.
I found a problem.
See next.jpg. Button next not shows.

I change in files:
vendor\koala-framework\extjs2\resources\css\ext-all.css (line 1524)
vendor\koala-framework\extjs2\resources\css\toolbar.css (line 153)

page-n.ext2-disabled.gif to page-next-disabled.gif 

But error not gone. In app still load old css (I delete files in cache dir, clear-cache and clear my browser cache).
How to fix?

>well, you need to execute the build step:
Solved.

>yes, both of them.
OK. Deleted.

>hm. I have no idea what to do about that.
>maybe you could do some research?

>add the required libraries to composer.json and execute composer update
Can you give me some examples of downloading/including PHPExcel? I'm confused in these new folders =(

>I think current 3.8 branch will have some issues building on windows. I do have some fixes waiting to be merged tough:
>will be ready next week or so.
Good news. I will wait.
next.JPG

Artyom M

unread,
Dec 4, 2014, 8:45:05 AM12/4/14
to koala-fra...@googlegroups.com
>I found a problem.
>See next.jpg. Button next not shows.

Solved in that way:
1. change in 2 css-filles
1. php bootstrap.php build
2. php bootstrap.php clear-cache
3. clear cache in browser

Artyom M

unread,
Dec 4, 2014, 9:14:10 AM12/4/14
to koala-fra...@googlegroups.com
7. Strange horizontal and vertical scrolls in editdialogs.

see how it was - 3.5_editdialog.jpg
see how it now - 3.8_editdialog.jpg

If I set width by this:
$employees->setWidth(400);

then scrolls shows. If I comment this line - scrolls disappering, but dropdown is so small (50px in my opinion).
3.5_editdialog.JPG
3.8_editdialog.JPG

Artyom M

unread,
Dec 4, 2014, 7:53:49 PM12/4/14
to koala-fra...@googlegroups.com
8. Js endless loop problem

Solution:
1) Change initDate: '1/1/2008', to initDate: '2/1/2008',  in file  \vendor\koala-framework\extjs2\src\widgets\form\TimeField.js (line 84)
2) php bootstrap.php build
3) php bootstrap.php clear-cache
4) clear browser cache (optionally)

Artyom M

unread,
Dec 5, 2014, 3:12:28 AM12/5/14
to koala-fra...@googlegroups.com
>Can you give me some examples of downloading/including PHPExcel? I'm confused in these new folders =(

Solved.

1) edit composer.json in root folder:
{
    "require": {
        "koala-framework/koala-framework": "3.8.x-dev",
"phpoffice/phpexcel": "dev-master"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

2) composer update
3) add line in config.ini in root folder:
externLibraryPath.phpexcel = ./vendor/phpoffice/phpexcel/Classes
4) php bootstrap.php clear-cache

And it works!

Niko Sams

unread,
Dec 6, 2014, 4:51:50 AM12/6/14
to Koala Framework Dev
3) add line in config.ini in root folder:
externLibraryPath.phpexcel = ./vendor/phpoffice/phpexcel/Classes
that should not be required, composer should care about autoloading.
You should be able to simply use the phpexcel classes.

Niko
 

Niko Sams

unread,
Dec 6, 2014, 4:59:08 AM12/6/14
to Koala Framework Dev
On Thu, Dec 4, 2014 at 8:37 AM, Artyom M <psycho...@gmail.com> wrote:
>that's probably because all css classes switched from x- to x2-.
>reason for that is so we can mix with other extjs versions.
Solved.
1. php bootstrap.php build
2. Admin.files[] = ext2/resources/css/xtheme-gray.css in dependencies.ini 

>hm, I think I also have seen this error, but didn't have a detailed look.
I found a problem.
See next.jpg. Button next not shows.

I change in files:
vendor\koala-framework\extjs2\resources\css\ext-all.css (line 1524)
vendor\koala-framework\extjs2\resources\css\toolbar.css (line 153)

page-n.ext2-disabled.gif to page-next-disabled.gif 
Oh - my mistake.
I fixed that.
 
>hm. I have no idea what to do about that.
>maybe you could do some research?
Research? Windows file path limitation is 255 =(
well, research about how this could be solved - especially in combination with bower.
Others also must have this problem!

Niko

Niko Sams

unread,
Dec 6, 2014, 5:04:35 AM12/6/14
to Koala Framework Dev
changed that.
I also created a new tag for extjs2, composer update will update to that new release.

Niko

Artyom M

unread,
Dec 6, 2014, 10:36:27 AM12/6/14
to koala-fra...@googlegroups.com
9. White progressbar filling. 

Bug or feature? :D 
See excel_export.jpg.
User can't see percents when fill > 50%

10. Where is block user feature/block user buttons in users management? (kwf/user/users)
I can't see in my app now.

>that should not be required, composer should care about autoloading.
>You should be able to simply use the phpexcel classes.
Good. I'll try.
KWF now uses autoload.php which generates by composer?

>well, research about how this could be solved - especially in combination with bower.
>Others also must have this problem!
I found that:
also read post of Node core contributor:

Some users fix problem by adding parameter:

I would be happy to help you with this problem but I don't have enough in-depth knowledge.

>7. Strange horizontal and vertical scrolls in editdialogs.
But how to fix this problem? I think this is related to 3.8 change:
  • Lightbox, ViewAjax Javascript: converted from Ext2 to jQuery

I can't put app in production when it looks like this scrolls horror =)

excel_export.jpg

Niko Sams

unread,
Dec 7, 2014, 6:25:34 AM12/7/14
to Koala Framework Dev
On Sat, Dec 6, 2014 at 4:36 PM, Artyom M <psycho...@gmail.com> wrote:
9. White progressbar filling. 

Bug or feature? :D 
See excel_export.jpg.
User can't see percents when fill > 50%
bug for sure :D
I've never seen that issue, maybe you can find the cause by inspecting it using firebug?
 

10. Where is block user feature/block user buttons in users management? (kwf/user/users)
I can't see in my app now.
check the acl - who creates the resources?
 

>that should not be required, composer should care about autoloading.
>You should be able to simply use the phpexcel classes.
Good. I'll try.
KWF now uses autoload.php which generates by composer?
not directly, we have our own autoloader (to be php 5.2 compatible)
but ours (Kwf/Loader.php) also uses the data as autoloader.php does.
 

>well, research about how this could be solved - especially in combination with bower.
>Others also must have this problem!
I found that:
also read post of Node core contributor:

Some users fix problem by adding parameter:

I would be happy to help you with this problem but I don't have enough in-depth knowledge.
I think I found a way to work around that: install bower globally
npm install -g bower
with a change i just pushed the global bower will be used (if found).
run composer update and see if that helps
 

>7. Strange horizontal and vertical scrolls in editdialogs.
But how to fix this problem? I think this is related to 3.8 change:
  • Lightbox, ViewAjax Javascript: converted from Ext2 to jQuery
no, that's not related to that.
To fix that I need a simple way to reproduce. maybe you can create something based on kwf-app-demo that shows the problem.

Niko

Niko Sams

unread,
Dec 7, 2014, 6:33:27 AM12/7/14
to Koala Framework Dev

4. Clear-cache writes me "build folder doesn't exist"

In which folder create it?
well, you need to execute the build step:

I think current 3.8 branch will have some issues building on windows. I do have some fixes waiting to be merged tough:
will be ready next week or so.
merged.
and works on my windows vista test machine pretty good...

Niko 

Artyom M

unread,
Dec 8, 2014, 12:06:26 AM12/8/14
to koala-fra...@googlegroups.com
11. Vertical scroll in adding file

see file.jpg

>bug for sure :D
>I've never seen that issue, maybe you can find the cause by inspecting it using firebug?
 found in file cache\zend-cache...Admin_ru_0_css background of .x2-progress-bar class have a wrong value:
background:#9CBFEE url(/assets/ext2/resources/css/ /assets/ext2/resources/images/default/progress/progress-bg.gif ) repeat-x left center;

That's why browsers skip it and I can't see this proprerty in Furebug.
In normal css-files ext-all.css and progress.css all is good.

I try to change line in this file but problem is still exists.

>check the acl - who creates the resources?
What do you mean?

>no, that's not related to that.
>To fix that I need a simple way to reproduce. maybe you can create something based on kwf-app-demo that shows the problem.
I don't think I can put my problem to kwf-app-demo =)

I found a strange bug.

If height of the form is less than height of all elements in it, a horizontal and vertical scrolls shows. In 3.5 ONLY vertical scroll shows.
I increase height and most of problems is gone.

eg call:
$this->_editDialog = array(
                                       'controllerUrl' => '/flightplans/flightfile',
                                       'width' => 550,
                                       'height' => 270  <--- this value must be more than height of all elements on form
                                       );

eg. adding field:
$this->_form->add(new Kwf_Form_Field_Select('typeId', trlKwf('Type')))
        ->setValues($typeModel)
        ->setSelect($typeSelect)
        ->setWidth(400)
        ->setAllowBlank(false);

But one problem is solved only by comment set of width line.
It exists also in version 3.5.

See 3.5_dropdown_bug.jpg. Scrolls not shows, but part of dropdown is hidden.
In 3.8 it looks like 3.8_dropdown_bug.jpg

eg.:
$positions = new Kwf_Form_Field_Select('positionId', trlKwf('Position'));
        $positions->setValues($typeModel->getRows($typeSelect));
        $positions->setAllowBlank(false);
        $positions->setWidth(400);

file.JPG
3.8_edit_dropdown_bug.JPG
3.5_edit_dropdown_bug.JPG

Artyom M

unread,
Dec 8, 2014, 12:39:57 AM12/8/14
to koala-fra...@googlegroups.com
>merged.
>and works on my windows vista test machine pretty good...

Today I'm tried update my app from 3.7 to 3.8. Fail:

  - Installing koala-framework/zendframework1 (v1.12.6)
    Downloading: 100%

  [ErrorException]
  ZipArchive::extractTo(vendor/composer/d377c9d1/koala-framework-zendframewor
  k1-40d9724\library\Zend\Service\WindowsAzure\CommandLine\Scaffolders\Defaul
  tScaffolder\resources\PhpOnAzure.Web\resources\WebPICmdLine/Microsoft.Web.P
  latformInstaller.UI.dll): failed to open stream: No such file or directory

Artyom M

unread,
Dec 8, 2014, 2:05:57 AM12/8/14
to koala-fra...@googlegroups.com
I tried to copy 3.8 version from Linux to my WAMP. Fail.

1) php bootstrap.php clear-cache - white screen
2) delete all in \cache - white screen
3) php bootstrap.php build - fail

C:\OpenServer\domains\aviashelf1>php bootstrap.php build
[ 1/3] building trl...... OK (249ms)
[ 2/3] building events... OK (432ms)
[ 3/3] building assets...
calculating dependencies...
 58% [############---------] Admin css                                         e
xception 'Kwf_Exception' with message 'compiling sass failed:
C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\node_mod
ules\node-sass\lib\index.js:21
    throw new Error('`libsass` bindings not found. Try reinstalling `node-sass
          ^
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
    at getBinding (C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala
-framework\node_modules\node-sass\lib\index.js:21:11)
    at Object.<anonymous> (C:\OpenServer\domains\aviashelf1\vendor\koala-framewo
rk\koala-framework\node_modules\node-sass\lib\index.js:181:23)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\OpenServer\domains\aviashelf1\vendor\koala-framewo
rk\koala-framework\node_modules\node-sass\lib\render.js:3:12)
    at Module._compile (module.js:456:26)' in C:\OpenServer\domains\aviashelf1\v
endor\koala-framework\koala-framework\Kwf\Assets\Dependency\File\Scss.php:71
Stack trace:
#0 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\A
ssets\Dependency\File\Scss.php(155): Kwf_Assets_Dependency_File_Scss->warmupCach
es()
#1 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\A
ssets\Dependency\File\Scss.php(163): Kwf_Assets_Dependency_File_Scss->getContent
s('ru')
#2 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\A
ssets\Package.php(218): Kwf_Assets_Dependency_File_Scss->getContentsPacked('ru')

#3 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\A
ssets\Package.php(358): Kwf_Assets_Package->getPackageContentsPartCount('text/cs
s', 'ru')
#4 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\U
til\Build\Types\Assets.php(150): Kwf_Assets_Package->getPackageUrls('text/css',
'ru')
#5 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\U
til\Build\Types\Abstract.php(15): Kwf_Util_Build_Types_Assets->_build(Array)
#6 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\U
til\Build.php(96): Kwf_Util_Build_Types_Abstract->build(Array)
#7 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\C
ontroller\Action\Cli\BuildController.php(35): Kwf_Util_Build->build(Array)
#8 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\C
ontroller\Action.php(33): Kwf_Controller_Action_Cli_BuildController->indexAction
()
#9 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\zendframework1\librar
y\Zend\Controller\Dispatcher\Standard.php(308): Kwf_Controller_Action->dispatch(
'indexAction')
#10 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\zendframework1\libra
ry\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch
(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#11 C:\OpenServer\domains\aviashelf1\vendor\koala-framework\koala-framework\Kwf\
Controller\Front.php(139): Zend_Controller_Front->dispatch(Object(Kwf_Controller
_Request_Cli), Object(Kwf_Controller_Response_Http))
#12 C:\OpenServer\domains\aviashelf1\bootstrap.php(20): Kwf_Controller_Front->di
spatch()
#13 {main} [ERROR] (7171ms)

C:\OpenServer\domains\aviashelf1>

Artyom M

unread,
Dec 12, 2014, 8:33:09 AM12/12/14
to koala-fra...@googlegroups.com
Niko, where are you? :D

Someone else from Koala developers answer here? =)

Niko Sams

unread,
Dec 14, 2014, 11:24:58 AM12/14/14
to Koala Framework Dev
I have no idea what this could be, sorry.
I never had this issue...

Niko

Niko Sams

unread,
Dec 14, 2014, 11:26:18 AM12/14/14
to Koala Framework Dev
On Mon, Dec 8, 2014 at 8:05 AM, Artyom M <psycho...@gmail.com> wrote:
I tried to copy 3.8 version from Linux to my WAMP. Fail.
don't copy the vendor folder, instead install using composer install.
Also don't copy cache folder.

Niko

Niko Sams

unread,
Dec 14, 2014, 11:34:15 AM12/14/14
to Koala Framework Dev
On Mon, Dec 8, 2014 at 6:06 AM, Artyom M <psycho...@gmail.com> wrote:
11. Vertical scroll in adding file

see file.jpg
looks like the long filename is the reason for that. Is that a problem for you?
Nobody complained about it till now :D
You could try to fix yourself and send us a pull request.
see: Kwf_js/Form/File.js and File.css
 

>bug for sure :D
>I've never seen that issue, maybe you can find the cause by inspecting it using firebug?
 found in file cache\zend-cache...Admin_ru_0_css background of .x2-progress-bar class have a wrong value:
background:#9CBFEE url(/assets/ext2/resources/css/ /assets/ext2/resources/images/default/progress/progress-bg.gif ) repeat-x left center;

That's why browsers skip it and I can't see this proprerty in Furebug.
In normal css-files ext-all.css and progress.css all is good.

I try to change line in this file but problem is still exists.
Good find. I fixed this bug in koala-framework.

 

>check the acl - who creates the resources?
What do you mean?
well, if you don't see an menu item it's probably acl related.
Make sure the item (=resource) exists in the acl the the relevant role has permissions.
And by "who" I mean if it's your code or if it's kwf code.
 

>no, that's not related to that.
>To fix that I need a simple way to reproduce. maybe you can create something based on kwf-app-demo that shows the problem.
I don't think I can put my problem to kwf-app-demo =)
Not our kwf-app-demo but a custom branch in your fork - simply to demonstrate the issue to me.
 

I found a strange bug.
Please create a testcase using kwf-app-demo :D
(sorry, but I need a way to reproduce the issue)

Niko

Niko Sams

unread,
Dec 15, 2014, 9:20:19 AM12/15/14
to Koala Framework Dev
ah, I now also could see that on windows8.

and fixed it....

Niko 

Artyom M

unread,
Dec 17, 2014, 8:49:53 PM12/17/14
to koala-fra...@googlegroups.com
>don't copy the vendor folder, instead install using composer install.
>Also don't copy cache folder.
This helps me with looong filename paths.

>ah, I now also could see that on windows8.
>and fixed it....
Thank you! 
Now my app version 3.8 works well on WAMP (windows 7).

Artyom M

unread,
Dec 19, 2014, 12:07:34 AM12/19/14
to koala-fra...@googlegroups.com
>well, if you don't see an menu item it's probably acl related.
>Make sure the item (=resource) exists in the acl the the relevant role has permissions.
>And by "who" I mean if it's your code or if it's kwf code.

My code creates resources. It's not menu item, it's user block in users management - see block.jpg
It was in 3.5, but in 3.8 I don't see this.

My code from acl.php:
$this->addResource(new Kwf_Acl_Resource_MenuUrl('usersmanagement_index', array('text'=>trlKwfStatic('Users management'), 'icon'=>'user_suit.png'), '/usersmanagement/usersmanagement'), 'default_settingsmenuitem');
//resources
$this->addResource(new Zend_Acl_Resource('usersmanagement_usersmanagement'), 'usersmanagement_index');
$this->add(new Zend_Acl_Resource('kwf_user_user'), 'usersmanagement_index');
$this->add(new Zend_Acl_Resource('kwf_user_log'), 'usersmanagement_index');
$this->add(new Zend_Acl_Resource('kwf_user_comments'), 'usersmanagement_index');
//access
$this->allow(array('admin', 'power'), 'usersmanagement_index');

usesrmanagement - it is extended /kwf/user/users:
block.JPG

Artyom M

unread,
Dec 22, 2014, 1:16:42 AM12/22/14
to koala-fra...@googlegroups.com
12. No translations in /kwf/user/users delete dialog
kwf-lib/trl.xml has yes/no translation to RU, but shows me EN
see delete.jpg

>Please create a testcase using kwf-app-demo :D
>(sorry, but I need a way to reproduce the issue)
Created

I only can't reproduce issue with filter field (code is commented) that I described:
This problem exists in 3.5 and in 3.8.

delete.JPG

Niko Sams

unread,
Dec 24, 2014, 6:57:00 AM12/24/14
to Koala Framework Dev
On Fri, Dec 19, 2014 at 6:07 AM, Artyom M <psycho...@gmail.com> wrote:
>well, if you don't see an menu item it's probably acl related.
>Make sure the item (=resource) exists in the acl the the relevant role has permissions.
>And by "who" I mean if it's your code or if it's kwf code.

My code creates resources. It's not menu item, it's user block in users management - see block.jpg
It was in 3.5, but in 3.8 I don't see this.

ok, that is unrelated to acl, that's all handled inside the controller.

Niko 

Artyom M

unread,
Jan 13, 2015, 8:49:14 AM1/13/15
to koala-fra...@googlegroups.com
>ok, that is unrelated to acl, that's all handled inside the controller.
But how to get this button back? It's standard /kwf/user/users controller.

And what about other problems that I described before? I created a repository to show the scrolling problem long ago.

Niko Sams

unread,
Jan 14, 2015, 3:14:41 PM1/14/15
to Koala Framework Dev
On Tue, Jan 13, 2015 at 2:49 PM, Artyom M <psycho...@gmail.com> wrote:
>ok, that is unrelated to acl, that's all handled inside the controller.
But how to get this button back? It's standard /kwf/user/users controller.
you inherit the standard Kwf users class in javascript?
do you have protected $_permissions set correctly in the controller?

hard to say what's wrong here without debuging it....

And what about other problems that I described before? I created a repository to show the scrolling problem long ago.
uhm, sorry - please point me to that again....

Niko

Artyom M

unread,
Jan 15, 2015, 2:56:18 AM1/15/15
to koala-fra...@googlegroups.com
>you inherit the standard Kwf users class in javascript?
No.

>do you have protected $_permissions set correctly in the controller?
No, few code... my controller in attach with name UsersmanagementController.php. Nothing else.
UsersmanagementController.php

Artyom M

unread,
Jan 15, 2015, 7:55:11 AM1/15/15
to koala-fra...@googlegroups.com
>uhm, sorry - please point me to that again....
About scrolls problem (I created testcase) and translation in delete dialog:

Artyom M

unread,
Jan 16, 2015, 1:34:48 AM1/16/15
to koala-fra...@googlegroups.com
Also KWF has a "error - wrong version" loop problem.
See wrong.jpg. Only one way to solve this problem - clear browser cache.
For example, if I change bootstrap.php in root dir (with text "site unavailable now") and change to normal after works - this dialog shows to all users and I go to clean them browser cache =)
Button "OK" reload page and error shows again.

Calendar in KWF become English. Why? In 3.5 it was in selected language.
"Loading..." text in controllers also shows in English. Somewhere EN somwhere selected lang....
wrong.JPG

Artyom M

unread,
Jan 19, 2015, 7:11:00 AM1/19/15
to koala-fra...@googlegroups.com
Also pagination and filtering not translated...
See screens in attach.
filter.JPG
pagination.JPG

Artyom M

unread,
Jan 20, 2015, 11:26:32 PM1/20/15
to koala-fra...@googlegroups.com
I found what was the scrolls problem... 

Scrolls shows only in Firefox, see:

.ext2-gecko .x2-window-body .x2-form-item {
    overflow: auto;
}

Every form item has this class and (overflow: auto) fires on each and adds scrolls. Please fix it =)

Artyom M

unread,
Jan 20, 2015, 11:29:24 PM1/20/15
to koala-fra...@googlegroups.com
See this in my repo:

in edit dialog with FF.

Artyom M

unread,
Jan 23, 2015, 3:01:20 AM1/23/15
to koala-fra...@googlegroups.com
I found file related to translation problem:
\vendor\koala-framework\koala-framework\extjs2\src\widgets\PagingToolbar.js

if I change values to needed lang - all is OK.

Also I found why it happened (maybe). I use webCodeLanguage = ru, but file with translations has 'en' prefix:
\vendor\koala-framework\koala-framework\Ext\ext-lang-en.js

That's why in previous version all be OK. webCodeLanguage was en in 3.5.
I think I need ext-lang-ru.js file.
Is it right? 

Artyom M

unread,
Feb 3, 2015, 5:17:55 AM2/3/15
to koala-fra...@googlegroups.com
3) add line in config.ini in root folder:
externLibraryPath.phpexcel = ./vendor/phpoffice/phpexcel/Classes
that should not be required, composer should care about autoloading.
You should be able to simply use the phpexcel classes.

Error!
 
<b>Fatal error</b>:  Class 'PHPExcel' not found in <b>/var/www/puls/vendor/koala-framework/koala-framework/Kwf/Controller/Action/Auto/Grid.php</b> on line <b>931</b><br />

$xls = new PHPExcel(); (line 931)

My composer:
{
    "require": {
        "koala-framework/koala-framework": "3.8.x-dev",
		"phpoffice/phpexcel": "dev-master"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Niko Sams

unread,
Feb 3, 2015, 11:16:55 AM2/3/15
to Koala Framework Dev
that looks correct. I would reference a stable version though.

- did you check the library exists in vendor?
- did you check vendor/composer/autoload_namespaces.php contains the entry?


Niko

Niko Sams

unread,
Feb 3, 2015, 11:20:27 AM2/3/15
to Koala Framework Dev
All other unsolved topics get a bit messy on this mailing list now - sorry for not replying faster.

Could you please create an issue on github for each individual problem.
That allows us to organize and solve each and every problem you have :D

Niko

Artyom M

unread,
Feb 3, 2015, 9:07:02 PM2/3/15
to koala-fra...@googlegroups.com
> - did you check the library exists in vendor?

Yes. That's why my classes works only with adding this line:
externLibraryPath.phpexcel = ./vendor/phpoffice/phpexcel/Classes

if I comment this - all with Excel not working.

>- did you check vendor/composer/autoload_namespaces.php contains the entry?

Yes.

'PHPExcel' => array($vendorDir . '/phpoffice/phpexcel/Classes'),


You can simply check this bug by adding line:
$xls = new PHPExcel();

to IndexController.php in kwf-app-demo

Artyom M

unread,
Feb 3, 2015, 11:17:39 PM2/3/15
to koala-fra...@googlegroups.com
>All other unsolved topics get a bit messy on this mailing list now - sorry for not replying faster.
>
>Could you please create an issue on github for each individual problem.
>That allows us to organize and solve each and every problem you have :D

Done.
Reply all
Reply to author
Forward
0 new messages