Webmasters Archive

  • How To Reserve Your Own XXX Domain Names?

    How To Reserve Your Own XXX Domain Names?

    Tweet Recently, the Internet Corporation for Assigned Names and Numbers (ICANN) has approved the .XXX top-level domain (TLD) for domains.  To register for a .XXX domain, you will need to prove that your company is associated with the adult industry.  More information can be find...

    Full Story

  • drupal

    How to Reset Drupal Administrator Password?

    Tweet There are two ways you can do to reset the Admin password. 1. Use the ‘Forgot password’ option to email you a new password.  This only works if you have setup an email to the account. 2. Access the database and update the users...

    Full Story

  • drupal

    Drupal: Chinese Characters in URL

    Tweet Recently, we ran into a problem with Drupal when displaying Chinese characters or any non English characters (UTF-8) in the URL.   All the URL returned with a 400 Bad Request error along with a 403 Forbidden Error. e.g. Bad Request Your browser sent a...

    Full Story

  • MySQL Tables With UTF-8

    MySQL Tables With UTF-8

    Tweet Here is how to properly setup your database to store and query UTF-8 characters 1. You will need to make sure your tables are setup to store UTF-8 values. e.g. show create table {tablename};  <– this will output table setup If you see the...

    Full Story

  • drupal

    PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062

    Tweet Today, we came across a problem with Drupal.  Every time when we tries to add new contents, it is giving us the following error message PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ’0′ for key 2 INSERT INTO {node}… At first, we thought...

    Full Story

  • Syntax error or access violation: 1226 User ‘username’ has exceeded the ‘max_questions’ resource (current value: 75000)

    Syntax error or access violation: 1226 User ‘username’ has exceeded the ‘max_questions’ resource (current value: 75000)

    Tweet Recently, one of our CMS site receives the following error message: Syntax error or access violation: 1226 User ‘username’ has exceeded the ‘max_questions’ resource (current value: 75000) This is clearly an issue with our hosting company.  They have setup a MAX limits on the...

    Full Story

  • drupal

    How to Mass Delete Nodes In Drupal

    Tweet Here is a sample code to delete a node or mass delete nodes in Drupal $node_type = ‘page’; $rsquery = db_query(“SELECT n.nid FROM {node} n WHERE n.type = ‘%s’ limit 100″, $node_type); set_time_limit(0); while ($n = db_fetch_object($rsquery)) {        node_delete($n->nid);  } Tweet

    Full Story

  • drupal

    Drupal – Create New Node With PathAuto

    Tweet Here is a sample code to create a new page node in Drupal with the “node_save()” and adding the pathauto page. // Bootstrap Drupal include_once ‘includes/bootstrap.inc’; include_once ‘./sites/all/modules/path/path.admin.inc’; include_once ‘./sites/all/modules/path/path.module’; include_once ‘./sites/all/modules/node/node.module’;  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); $node = new stdClass();  $node->type = ‘page’;   $node->title = “Page Title”; ...

    Full Story

  • godaddy

    How To Cancel Auto Renewal For SSL Certificates In GoDaddy?

    Tweet To disable the Auto Renewal feature for SSL Certificates in Godaddy, follow the instructions below. - Login to your GoDaddy Account - Click on the “My Account” menu - Look for the “Renewals” link and click on it - On the left hand side...

    Full Story

  • drupal

    Drupal Admin Page Is Blank

    Tweet Today, we came across with an issue on a Drupal site that we manage.  Our admin page is BLANK.  We got so scare because we have not backed up this site yet and we have put weeks of work on customizing this Drupal site. ...

    Full Story