iThemes Security (formerly Better WP Security) has implemented some rules to prevent unwanted actions on your WordPress website. One of these Rules is to prevent php execution in side “uploads” folder. The line which is supposed to do it is…
How to paginate a different model with options in CakePHP
Assume you are on a LogsController which has Log as the default model and wanted to paginate another model LogColumn. Here’s How it goes:
How to get model name from controller in cakephp
Suppose we have $controller as an object for our controller class. We can do the following to get the model class: [code]$modelName = $controller->modelClass;[/code]
Gravity Forms PDF Extended Not Working?
Are you facing WordPress admin screens dying on white screens? Especially while using Gravity Forms PDF Extended plugin? It could be the main Gravity Forms “Entries” screen (ex. wp-admin/admin.php?page=gf_entries) and/or the single PDF generation or template page (ex. ?gf_pdf=1&fid=348&lid=2323&template=default-template.php
Useful git commands or actions
Allos Overwrite Ref. Ignoring “Your local changes to the following files would be overwritten by merge” on pull git checkout HEAD^ file/to/overwrite git pull Ignoring versioned files To start ignoring a file $ git update-index –assume-unchanged path/to/file.txt To start track…
How to make sticky header row in Excel
With the excel spreadsheet going large you have to scroll down to view the records which are out of screen and fall out of the screen down towards bottom. In this process of scrolling you might not be able to…
PHPBB sessions table filling up – A Big Mistake!
This issue took me weeks to fix it. It started when we started working on a new ratings module for PHPBB forum at popular HTML.net website. I noticed (the client also knew) that a few of forum tables filled very…
How to Change the Default Media Upload Location in WordPress 3.5+
Changes to Media Uploader in WordPress 3.5 were perhaps the most significant changes in that release. Another important change was the removal of Settings » Miscellaneous section where there was an option to change the default upload directory and an…
Fixing “unable to create directory uploads” error
I tried to add a featured image to the previous post i created but it gave me the following error: Unable to create directory uploads/2014/08. Is its parent directory writable by the server? The same error occurred when i tried…
Linking your Dell Laptop to Dell Product Support
It’s almost 5 years when i purchased my first laptop. It was Dell Inspiron 1440. This was the first and the only laptop i have had bought for myself till date. After buying this one didn’t feel need to buy…