Pages

Showing posts with label update. Show all posts
Showing posts with label update. Show all posts

Tuesday, September 20, 2016

Ubuntu boots into command line after update

I recently faced this issue after updating to Ubuntu 15.10 and was looking for solutions until this one worked for me

Enter into recovery mode from grub and run the following  command

sudo dpkg --configure -a

Saturday, December 13, 2014

Wordpress-Bypass FTP credientials step for updates(Update on localhost)

If you want to bypass the step where wordpress asks for ftp credentials on update i.e you do not want wordpress to ask for ftp credentials on update specially helpful in updating on localhost

Then in wp-config.php add the following lines to the code
 
define('FS_METHOD','direct');

That's it and this will bypass the ask for ftp credientials

Tuesday, April 2, 2013

Magento-Home Page-Store or Store View is not showing up-404 error: Page not found

Checklist :

1. Make sure the default store view of your defaut store of your default website is not disabled.
2. Flush your cache's
3. Reindex Data
4. Set Main website as default and and then set back your website as default.

The last option worked me with once I changed the Default store for my default website and did every thing till 7th point untill I hit and tried 8th one and it worked for me.

If this is not helping you need to debug the issue since it may either be your .htaccess issue or issue from index.php
Open the index.php in root directory of the Magento installation and comment the line
Mage::run($mageRunCode, $mageRunType);
 (you will find this line near the end)
 Run your website if you still find a 404 page not found error its an .htaccess issue try renaming the same

Else try this hardcode in index.php

Just above the code mentioned above type in the following code

/* Store or website code */
$mageRunCode = 'code of store view to load';

/* you will find the code field when you edit your store view type the same code exactly here */

/* Run store or run website */
$mageRunType ='store';


(make sure you type this just before the code line "Mage::run($mageRunCode, $mageRunType);" ) inorder to override default value of these variables

If you are able to open your store view here you need to go back and check store Management.

Post here if you further have any issues

Tuesday, November 6, 2012

Difference in == & === with example

I had a scenario in WordPress where to update and insert a record I used

$wpdb->insert and
$wpdb->update

now they both on success return "no of rows" and "1" on failure they return "0" and "0"(of type boolean which is false)

I was using same variable To check for their result as such on their failure I had to use I had to use

if($res= = =false)
{
}.
elseif($res= =0)
{
}