Skip to main content

Posts

Showing posts from May, 2014

Odoo/OpenERP opererp-server file

Since few days, working with OpenERP backend section. I did some coding changes in Python but was not able to restart OpenERP service due to commented and wrong python file openerp-server . File was at following location of my server : /etc/init.d/openerp-server Checked over internet and didn't find any relevant answer which could have solved my problem. After spending few hours i corrected my file that's running successfully now. Please check attached file here . Download Hopefully it will someone else's issue as well. Thanks!!!!!!!!!!! Enjoy Programming :)

CakePHP TinyMCE Validation Problem

In development world, daily we face lot of problems, some are big while some are minor. Sometimes it takes a lot of time to fix small one than bigger ones. Similar to this, today I faced a small issue with TinyMCE in CakePHP. It was to set an attribute and to figure it out itself took couple of hours of mine. Then I decided to share it with my readers, thinking that it may save those couple of hours of someone else at some point of time. Problem : TinyMCE notempty validation was not working fine and it was showing following message on console. An invalid form control with name='page [description]' is not focusable Solution :  Set required attribute to be false in view file. For example : <div>                 <div class="umstyle3"><?php echo __('Page Description');?></div>              ...

Aptana IDE

Recently, I attended GDG meet in Chandigarh and 2nd time heard about Aptana IDE. So decided to download and use the same. Downloaded Aptana Studio 3.4.2 from here , installed and run it on my machine. First screen would look like this. Aptana Studio 3.4.0 is an open source Web development IDE being used by lot of developers across world. This powerful tool is having features like intellisense, integrated debugger and good version control system that gives you the precision control to create the applications you need without wasting time or running multiple programs simultaneously. Aptana Studio 3.4.0 makes it easy to develop, test, debug and publish your applications within a single environment. If you code in PHP, Python , HTML, CSS, Ruby, Javascript or other languages, Aptana is what you need for top-quality results. If you need to move back and forth between Windows and Mac OS, Aptana makes it happen. If you have used Netbeans or Eclipse before in developmen...

Magento : Admin backend 404 not found

Have you imported database to new server and you are not able to access Magento admin panel? and it's showing you 404 not found error? If yes, try to run following commands from phpmyadmin. SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_id = 0 WHERE code='admin'; UPDATE core_store_group SET group_id = 0 WHERE name='Default'; UPDATE core_website SET website_id = 0 WHERE code='admin'; UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN'; SET FOREIGN_KEY_CHECKS=1; It worked for me. Hopefully, this will work for you guys as well. The reason for this error is that store_id and website_id for admin should be set to 0 (zero) . But, when you import database to new server, somehow these values are not set to 0. Thanks!!!!!!!! Enjoy Programming :) Reference Links : http://stackoverflow.com/questions/5178066/error-404-not-found-in-magento-admin-login-page