Page 11 of 15

Re: 1.0 Beta5 Released!

Posted: Thu Aug 24, 2006 6:00 pm
by NickR
I've noticed for a while that some modules use a lot of memory = especially with the 1.0 betas

I know another CMS where all functionality is 100% lazy loaded, every file has one job, eg news/add.php news/summary.php news/baseclass.php means pretty much only the code that is needed is loaded, it does mean a LOT of work for CMSMS to approach that.

Firstly, seperate admin interface functionailty to be lazy loaded into seperate files.
Seperate functionality that modifies content to be lazy loaded into seperate files.
This should mean that we should be left with the main functionaility to display a modules content to the front end
Seperate anything to do with templates into seperate files, eg default templates.
I know some modules do this and others dont.

I was also thinking about the overhead of unloading totally and loading modules that are not used - eg admin only modules dont run unless there actually is someone in admin area.

Re: 1.0 Beta5 Released!

Posted: Thu Aug 24, 2006 6:30 pm
by calguy1000
NickR wrote: I've noticed for a while that some modules use a lot of memory = especially with the 1.0 betas

I know another CMS where all functionality is 100% lazy loaded, every file has one job, eg news/add.php news/summary.php news/baseclass.php means pretty much only the code that is needed is loaded, it does mean a LOT of work for CMSMS to approach that.
We're pretty much there already, and alot more work has been done to split out core so even most of the classes are lazy loaded.  If you look in News module (especially in B5) you'll see method.install.php method.uninstall.php action.addarticle.php, etc, etc, etc.

This doesn't mean that every module is this way, many are not yet.  But that's up to each module developer.  I've just split calendar out, but still have alot to do with FrontendUsers, SelfRegistration, Uploads, etc, etc, etc.
Firstly, seperate admin interface functionailty to be lazy loaded into seperate files.
Seperate functionality that modifies content to be lazy loaded into seperate files.
This should mean that we should be left with the main functionaility to display a modules content to the front end
Seperate anything to do with templates into seperate files, eg default templates.
I know some modules do this and others dont.

I was also thinking about the overhead of unloading totally and loading modules that are not used - eg admin only modules dont run unless there actually is someone in admin area.
Admin only modules can override an 'IsAdminOnly()' method and then they don't even get loaded on the frontend.
you'll have to look through the code.... we're alredy ahead of you on these issues :)

Re: 1.0 Beta5 Released!

Posted: Thu Aug 24, 2006 6:45 pm
by NickR
Cool :)

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 1:41 am
by Ted
Beta6 is up.  This is the last planned beta release, but we'll see.

Basically, this adds the lazy loading mechanisms talked about above.  The memory usage should be better now.  However, there is also a cost to this in that a decent amount of modules will need more tweaking.  Class method calls go away now, and that can cause an issue for modules that call back to core class methods.

I did, however, put in a backwards_compatible mode (in config.php).  If a module that you REALLY need to work uses static methods, then the backwards compatible mode will load all classes before hand (using more memory, obviously) and allow those calls to work.  But, it would just be better to bug your favorite module dev to fix it...

Keep in mind, that 1.0 doesn't hold the entire feature set we envision and it's not a "final" release by any means...  There is still tons of room for improvement (as I've read about above) and we'll continue working to get there.  However, we just need to get over this magical "1.0" hump to prove to people that we are in fact "stable" and can be used on a real site.  Granted most of the people reading this know that already.  :)

Keep up the good feedback.  Let's get this one out the door and start looking ahead to bigger and better things (I know I can't wait for that).

Thanks!  Back to your regularly scheduled thread...

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 1:59 am
by badger
No comment other than to say keep up the good work, you guys are making a GREAT product!

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 5:18 am
by kode_fi
Has anyone had problems deleting pages using admin panel's "trash can" button??
I've tried 1.0beta5 and beta6 using two linux boxes. After clean installation I try to delete "Default templates explained" and all sub pages. After hitting trash can button httpd takes 70% cpu time. After PHP max_execution_time, theres line in error.log

PHP Fatal error:  Maximum execution time of 60 seconds exceeded in /var/www/html/cmsbeta6/lib/adodb_lite/adodbSQL_drivers/mysql/mysql_driver.inc on line 274

I changed execution time to 120 secs but it makes no difference.
In some cases this failed deletion attempt screws up  content's hierarchy structure.

Apache 2.0.52
php 4.3.9
mysql 4.1.10

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 6:51 am
by rodeto
After upgrading from beta 5 to beta 6 I got this message:

Fatal error: Class albumcontent: Cannot inherit from undefined class cmsmodulecontenttype in /home/xxxxxxxx/public_html/modules/Album/classes/module/class.AlbumContent.php on line 33

all content in "Album" can not be openend, read or changed by my.

Any idea what this might be?

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 7:14 am
by cyberman
@rodeto

Have you tried to set this to true:
Ted wrote: put in a backwards_compatible mode (in config.php).
Default is false ...

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 7:22 am
by ZYV
Post those on IRC, but anyway this it's worth for others to see the answers:
Just got another translation-wise question about CMSMS. Now given Ted released the last beta yesterday, how much time is left? Unfortunately, I've just strated the translation process (couldn't find time earlier). Gonna do that on my own, because other Russian translation team members don't have any more interest in the project :((

And what happens if I don't complete this at a time? The translation data entered in the TC after the release will be definitively lost? Or you will update the package from time to time?

Is there a way to get a dump of current translation in ru_RU.php form to test it locally (looks like another brilliant idea not yet implemented)?
DeeEye wrote:The translation data entered in the TC will not be lost (just won't make it into 1.0 stable, it will be in the release after it). After entering the translation in the TC you could test it easiest on an SVN installation (just do svn update).
So it does directly to the SVN for the 1.0 branch. This whole TC is a great thing!

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 7:49 am
by cyberman
Found two things:

- permission 'Modify Any Page' was NOT set for admin group per default
- value 'Enable GCB WYSIWYG' (My Preferences > User-Preferences) cant set. After a click in checkbox and Submit, the page reloads and checkbox is empty.

Checked on my local server ...

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 8:15 am
by cyberman
kode_fi wrote: Has anyone had problems deleting pages using admin panel's "trash can" button??
No, works on my local server (both php versions) ...

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 9:11 am
by Darien
rodeto wrote: After upgrading from beta 5 to beta 6 I got this message:

Fatal error: Class albumcontent: Cannot inherit from undefined class cmsmodulecontenttype in /home/xxxxxxxx/public_html/modules/Album/classes/module/class.AlbumContent.php on line 33
I´ve got the same problem. I can´t upgrade from beta5 to beta6, because the upgrade.php stops with this message.

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 9:18 am
by jce76350
Hi,
cyberman wrote: - value 'Enable GCB WYSIWYG' (My Preferences > User-Preferences) cant set. After a click in checkbox and Submit, the page reloads and checkbox is empty.
Also not working in local server
Windows XP Sp2  Apache 2.0.54 + MySQL 4.1.12 + PHP 5.0.4

And host server  http://acrn.free.fr//cms/
Apache/ProXad [Jul 17 2006 17:19:22] + mysql 5.0.25-nightly-20060803 + PHP Version 4.4.3-dev

And Global Content Blocks have no editor   ;)

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 9:49 am
by rodeto
cyberman wrote: @rodeto

Have you tried to set this to true:
Ted wrote: put in a backwards_compatible mode (in config.php).
Default is false ...
Yes, thanks, now it's working. I wil get on checking it out

Re: 1.0 Beta6 Released!

Posted: Fri Aug 25, 2006 9:58 am
by cyberman
Darien wrote: I´ve got the same problem
OK - haven't tried an update, only a fresh install ... perhaps album is one module which has problems with new optimizations Ted spokes about ::).

Have you tried to set backward compatibility mode manually before upgrading?

Is there a volunteer out there to create a list with modules which needs an update by dev?

If not, I'm afraid, we'll get masses of threads for every single module/tag with problems :-\.

Hmm, or we create an "award" like "1.0 ready" which will be shown in CMSms Forge. Please look at attachment  :).

[gelöscht durch Administrator]