<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Tips and Tricks &#187; Troubleshooting</title> <atom:link href="http://www.tipsandtricks-hq.com/category/web-development/troubleshooting/feed" rel="self" type="application/rss+xml" /><link>http://www.tipsandtricks-hq.com</link> <description>Tech tips, WordPress plugins, WordPress tweaks and Technical tips to build a better blog.</description> <lastBuildDate>Mon, 06 Feb 2012 06:23:22 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Playing In PayPal&#8217;s Sandbox</title><link>http://www.tipsandtricks-hq.com/playing-in-paypals-sandbox-2880</link> <comments>http://www.tipsandtricks-hq.com/playing-in-paypals-sandbox-2880#comments</comments> <pubDate>Wed, 17 Nov 2010 15:30:19 +0000</pubDate> <dc:creator>TheAssurer</dc:creator> <category><![CDATA[Payment Processor]]></category> <category><![CDATA[Shop Admin Tips]]></category> <category><![CDATA[Tech Tips]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Paypal]]></category> <category><![CDATA[Sandbox]]></category> <category><![CDATA[Testing]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=2880</guid> <description><![CDATA[Hello, is this thing on?  Many of us who have, or are in the process of launching, e-commerce sites have wondered about this at one time or another.  The most common way of finding out is to make a test purchase of $1 or less, to see if everything works.  But there is an alternative, that costs nothing to use; the PayPal Sandbox.  With the sandbox you can simulate PayPal transactions, as many times as you want, without incurring any processing fees.  Not only can you simulate actual purchases, you can test drive your e-commerce site from the purchaser's point of view.  You can even simulate how your site will react to purchasers with varying levels of PayPal funding and verification.]]></description> <content:encoded><![CDATA[<p
style="text-align: center"><img
class="size-medium wp-image-2900 aligncenter" src="http://www.tipsandtricks-hq.com/wp-content/uploads/2010/11/PayPalSandboxLogo-300x70.png" alt="" width="449" height="89" /></p><p>Hello, is this thing on?  Many of us who have, or are in the process of launching, e-commerce sites have wondered about this at one time or another.  The most common way of finding out is to make a test purchase of $1 or less, to see if everything works.  At about 35 cents a try (in PayPal fees), most people simply consider it a start up cost.  But there is an alternative, that costs nothing to use; the <a
href="https://developer.paypal.com/" target="_blank">PayPal Sandbox</a>.</p><p>With the sandbox you can simulate PayPal transactions, as many times as you want, without incurring any processing fees.  Not only can you simulate actual purchases, you can test drive your e-commerce site from the purchaser&#8217;s point of view.  You can even simulate how your site will react to purchasers with varying levels of PayPal funding and verification.</p><h3>Getting Started</h3><p>You will first need a PayPal sandbox account.  This account is separate from any of your primary or alternate PayPal accounts.  To get an account, visit the PayPal Sandbox site and <a
href="https://developer.paypal.com/devscr?cmd=_signup-run" target="_blank">Sign Up for Access to the Sandbox Test Environment</a>.  Usually, when selecting an e-mail address for your sandbox account, you would normally not use an e-mail address associated with your site&#8217;s domain; for security reasons.  However, if you plan to conduct end-to-end testing that involves the sending of e-mail messages to customers, you might want to use a &#8220;hard to guess&#8221; e-mail address on your site&#8217;s domain, for the sandbox account.</p><p>Once you have completed the sign up and verification process, you should be able to <a
href="https://developer.paypal.com/" target="_blank">log into your sandbox account</a>.  Once logged in, you are at the sandbox &#8220;Home&#8221; page.  The two sections of the sandbox you will likely use the most are &#8220;Test Accounts&#8221; and &#8220;Test Email.&#8221;</p><h3>Test Accounts</h3><p>Test accounts are simulations of PayPal buyers and sellers.  Each test account has access to its own (simulated) PayPal account.  To properly test your site, you need to create 1 &#8220;Seller&#8221; and at least 1 &#8220;Buyer&#8221; test account.  To create test accounts, from the &#8220;Home&#8221; page of your sandbox account, select whether to &#8220;create a preconfigured account&#8221; or &#8220;create an account manually.&#8221;  It is recommended that you use preconfigured buyer &amp; seller accounts, and then adjust them as needed.</p><p>After your test accounts have been created, you can goto the &#8220;Test Accounts&#8221; section of the sandbox, select an account, and then click &#8220;Enter Sandbox Test Site.&#8221;  Doing so will permit you to log into the simulated PayPal accounts of each test account; where you can perform most operations associated with real buyer and seller accounts.</p><h3>Test Email</h3><p>Whenever the &#8220;real&#8221; PayPal system processes transactions, it sends e-mail messages to the parties (buyer &amp; seller accounts) involved.  The test accounts you create are assigned randomly suffixed e-mail addresses; with the same domain as your sandbox account.  The &#8220;Test Email&#8221; section of the sandbox will contain all e-mail messages that PayPal would normally try sending to real buyers and sellers.</p><p>This section (of the sandbox) however, will not capture any e-mail messages that your site might send to simulated buyers.  If you create a &#8220;paypaltest@yahoo.com&#8221; sandbox account, the sandbox will assign any test accounts it creates to the &#8220;yahoo.com&#8221; domain.  Any e-mail the sandbox tries to send to &#8220;sndbox_12345_per@yahoo.com&#8221; will be captured and saved in the &#8220;Test Email&#8221; section of the sandbox.  Any messages your site tries sending to that same (simulated Yahoo) e-mail address, will be sent to Yahoo and then bounced back to the (simulated) non-existent seller account (also at Yahoo).  Eventually, after enough bounces, the message becomes &#8220;lost in the bit bucket.&#8221;</p><p>To prevent this, and to test the sending of customer e-mails, you might consider creating a &#8220;catch all&#8221; e-mail account for your site domain.  Your sandbox account could be &#8220;secretpaypaltest@mysite.com&#8221; which causes any test accounts you create to be assigned to the &#8220;mysite.com&#8221; domain.  Using the &#8220;catch all&#8221; e-mail account, you could then test whether or not your site is properly sending all the messages it should be, to the buyer.</p><h3>Configuring Your Site</h3><p>Most e-commerce packages (such as <a
href="http://www.tipsandtricks-hq.com/wordpress-estore-plugin-complete-solution-to-sell-digital-products-from-your-wordpress-blog-securely-1059?ap_id=TheAssurer" target="_blank">WP eStore</a>) that support PayPal, also support use of the PayPal Sandbox.  To setup your site, for sandbox testing, you only need to do 2 things; enable sandbox testing and specify your sandbox generated, seller test account, e-mail address.  Look for a setting (usually a check box) in your e-commerce software that says something like &#8220;enable sandbox mode.&#8221;  In the place where you specify your regular PayPal e-mail address, insert your seller test account a-mail address.  Save the settings  Now we are ready to play!</p><h3>Let&#8217;s Play!</h3><p>After configuring your software, if you immediately ran off, expecting everything to work&#8230; sorry.  In order for sandbox transactions to be properly processed, you must be logged into your sandbox account.  Here&#8217;s what you need to be doing&#8230;</p><p>Open 2 browser windows, or tabs; using the same browser session.  The first window is the &#8220;Test Conductor&#8221; window, and the second is the &#8220;Test Subject&#8221; window.  In the test conductor window, <a
href="https://developer.paypal.com/" target="_blank">log into your PayPal Sandbox account</a>.  In the test subject window, browse on over to your e-commerce site; and make sure that you are not logged in as the administrator.</p><p>In the test subject window, proceed to perform whatever test purchases or transactions you&#8217;d like.  Use the buyer test account e-mail address for all transactions.  Any PayPal generated e-mails will show up in the &#8220;Test Email&#8221; section of the sandbox; accessible from the test conductor window.  If you are using a &#8220;catch all&#8221; e-mail address (as earlier discussed), you will be able to read any e-mail messages generated by your site, as well.</p><h3>Caveats And Warnings</h3><ol><li>You must be logged into the sandbox, in order for test transactions to go through.</li><li>Anyone trying to make &#8220;real purchases&#8221; while the site is configured for sandbox testing will be disappointed.  They will be presented with the PayPal Sandbox login page, when they try to checkout.</li><li>Sandbox transactions are indistinguishable from real transactions.  Any sales, inventory or accounting records kept by your site will &#8220;think&#8221; that a real sale has occurred.  Remember to reset any inventory or sales records.</li><li>Remember to undo the sandbox configuration changes to your site.</li><li>If, while in sandbox mode, you setup any recurring (subscription) payments; remember to cancel them.  Otherwise months from now, when you are in non sandbox mode, your site will begin receiving invalid IPN from the sandbox; and your first reaction may be to think someone is hacking you.</li></ol><p><strong>About the Author:</strong> This post was written by <a
href="http://www.tipsandtricks-hq.com/about#TheAssurer">TheAssurer</a> who writes for Tips and Tricks HQ and helps out with plugin development.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/playing-in-paypals-sandbox-2880/feed</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>Debugging JavaScript Code with Firebug</title><link>http://www.tipsandtricks-hq.com/debugging-javascript-code-with-firebug-1899</link> <comments>http://www.tipsandtricks-hq.com/debugging-javascript-code-with-firebug-1899#comments</comments> <pubDate>Wed, 02 Dec 2009 09:04:31 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[Javascript]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1899</guid> <description><![CDATA[Firebug has become an indispensable tool for doing front-end development of web applications. However, most developers are unaware of some very useful features of this tool, especially when it comes to debugging JavaScript code. I&#8217;ve personally seen many of my colleagues relying on alert() function to reveal the flow of execution of their complex codes. [...]]]></description> <content:encoded><![CDATA[<p>Firebug has become an indispensable tool for doing front-end development of web applications. However, most developers are unaware of some very useful features of this tool, especially when it comes to debugging JavaScript code. I&#8217;ve personally seen many of my colleagues relying on alert() function to reveal the flow of execution of their complex codes. In this article we&#8217;ll look into some ways that Firebug can help you debug JavaScript and boost your productivity.</p><p><a
href="http://www.tipsandtricks-hq.com/wp-content/uploads/2009/12/software-debug.jpg"><img
class="alignnone size-full wp-image-1904" title="software-debug" src="http://www.tipsandtricks-hq.com/wp-content/uploads/2009/12/software-debug.jpg" alt="software-debug" width="110" height="78" /></a></p><h3>Breakpoints</h3><p>Setting a breakpoint on a line enables you to pause/resume execution of code at your will. When you put a breakpoint on a line, say line 10, the program pauses execution when it reaches line 10. Let&#8217;s see how we can do that:</p><p>Turn Firebug on and enable Console and Script views. Then visit<a
rel="nofollow" href="http://ajaxify.com/run/firebug/debug/"> ajaxify.com</a>. In the Script view, choose firebug.js from the dropdown menu at the top left corner. On the sub-view at the right click on Breakpoints pane. On the left margin of Script view, you will see the line numbers appear. Now click on line 10, it will be marked by a red circle. This red circle is the breakpoint, the Breakpoint sub-view will list you have set.</p><p>Now refresh and hit the Change the Message! button. You&#8217;ll notice line 10 is highlighted, a yellow arrow appearing at the margin indicates that the script has made its way to the breakpoint. From this point you can control the flow of execution using the controls now activated at the top right corner of Script view.</p><ul><li>Continue This button resumes execution. The script will only pause again if and when the script reaches a breakpoint.</li><li> Step Over This button executes the current line, including any functions that are invoked along the way, and moves to the next line.</li><li> Step Into This button ordinarily moves to the next line, as with Step Over. However, if the debugger happens to be paused at a line that invokes a function, the script will instead jump to the first line of the function.</li><li> Step Out This button causes the script to jump out of the current function, returning to the method from which it was called.</li></ul><div
id="attachment_1901" class="wp-caption alignnone" style="width: 454px"><a
href="http://www.tipsandtricks-hq.com/wp-content/uploads/2009/12/javascript-debug-screenshot.gif"><img
class="size-full wp-image-1901" title="javascript-debug-screenshot" src="http://www.tipsandtricks-hq.com/wp-content/uploads/2009/12/javascript-debug-screenshot.gif" alt="Firebug Debug Screenshot" width="444" height="135" /></a><p
class="wp-caption-text">Firebug Debug Screenshot</p></div><h3>Conditional Breakpoints</h3><p>Sometimes you may want a set a breakpoint, but make it apply only in certain conditions. You need conditional breakpoints. Right-click on a breakpoint and you’ll see a balloon-styled dialog asking you to enter a condition. This is simply a JavaScript expression; each time the breakpoint is reached, Firebug will evaluate the expression. If—and only if—the expression is true, the breakpoint will be applied and execution will pause.</p><h3>Watches</h3><p>A watch is a JavaScript expression that the debugger can continuously evaluate and display the value at your request, so that you don&#8217;t have to do it manually using the alert box. The expression could be as simple as a variable, or as complex as a formula containing calls to other functions. In our previous example, click on Watch and enter counter  in the text field new watch expression&#8230; As you keep clicking on the Change the Message! button the value of counter increases, and you can watch the value in the sub-view at the right.</p><p>Tip: When you type in a new watch expression, hit the tab button to get auto-suggestions for properties of objects.</p><h3>Call Stack Tracing</h3><p>Call stack tracing is the process which reveals the sequence of function calls, with the latest function called showing at the top and the first showing at bottom. When the debuggers is paused, you can click on the Stack sub-view to see the function call sequence. For our first example, when the program reaches the breakpoint and execution is paused, the stack trace will be like this:</p><div
id="code_block">changeMessage<br
/> handleButtonClick</div><p>It means when you clicked the button, the handler for the event handleButtonClick was called, which then called changeMessage. Thus, stack tracing can give you useful insight about program execution flaw when you stuck untangling some messy logic.</p><h3>Logging function calls</h3><p>Sometimes a problematic function is called so many times that you can&#8217;t break into the debugger every time. You just want to know when it&#8217;s called and what parameters were passed in. To track all calls to a function, just right click on it in the Script tab and choose &#8220;Log calls to &#8216;function name&#8217;&#8221;. Then hop over to the Console and watch the calls stream in.</p><p>Sometimes a problematic function is called so many times that breaking into the debugger seems like a tedious task. If you just want to know when the function is called and what parameters are passed in, you can log the calls to this function in the Console. To achieve this, right click on the function in the Script view and choose Log calls to . Then switch to Console view, execute the code and watch the stream of calls.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/debugging-javascript-code-with-firebug-1899/feed</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>How to Clean/Remove Not Found Errors from Google web master tools generated from translated versions</title><link>http://www.tipsandtricks-hq.com/how-to-cleanremove-not-found-errors-from-google-web-master-tools-generated-from-translated-versions-625</link> <comments>http://www.tipsandtricks-hq.com/how-to-cleanremove-not-found-errors-from-google-web-master-tools-generated-from-translated-versions-625#comments</comments> <pubDate>Mon, 12 Jan 2009 04:47:42 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[google webmaster tools]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[web masters]]></category> <category><![CDATA[Web Robots]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=625</guid> <description><![CDATA[I installed a translator plugin on one of my WordPress blogs but the plugin wasn&#8217;t working properly so I disabled it but two days later I found out that my Google web master tools account was reporting about 1100 &#8216;Not Found&#8217; errors under the &#8216;Web crawl errors&#8217; section. All the errors were from translated versions [...]]]></description> <content:encoded><![CDATA[<p
class="MsoNormal">I installed a translator plugin on one of my WordPress blogs but the plugin wasn&#8217;t working properly so I disabled it but two days later I found out that my Google web master tools account was reporting about 1100 &#8216;Not Found&#8217; errors under the &#8216;<span>Web crawl errors&#8217; section</span>. All the errors were from translated versions of my blog. I used the &#8216;robots.txt&#8217; file to fix this issue.</p><p
class="MsoNormal"><span>If you don&#8217;t know what a &#8216;robots.txt&#8217; file is, then read the article titled <a
href="http://www.tipsandtricks-hq.com/?p=166">how to control access of the web crawlers or web robots to your site</a>.<br
/> </span></p><p
class="MsoNormal"><span>Basically, add rules to your &#8216;robots.txt&#8217; file to Disallow any spider from indexing the translated version of the pages. My &#8216;robots.txt&#8217; file looks like the following Depending on your situation you might need to block more languages. Just look in the Google webmaster tools and see which languages are causing the error then add them to the Disallow rule.</span></p><p><code><br
/> User-Agent: *<br
/> # Language pages<br
/> Disallow: /ar/*<br
/> Disallow: /bg/*<br
/> Disallow: /zh-hant/*<br
/> Disallow: /ca/*<br
/> Disallow: /cs/*<br
/> Disallow: /da/*<br
/> Disallow: /de/*<br
/> Disallow: /el/*<br
/> Disallow: /es/*<br
/> Disallow: /fi/*<br
/> Disallow: /fr/*<br
/> Disallow: /he/*<br
/> Disallow: /hi/*<br
/> Disallow: /hr/*<br
/> Disallow: /id/*<br
/> Disallow: /it/*<br
/> Disallow: /iw/*<br
/> Disallow: /ja/*<br
/> Disallow: /ko/*<br
/> Disallow: /lt/*<br
/> Disallow: /lv/*<br
/> Disallow: /mr/*<br
/> Disallow: /nl/*<br
/> Disallow: /no/*<br
/> Disallow: /pl/*<br
/> Disallow: /pt-br/*<br
/> Disallow: /pt/*<br
/> Disallow: /ro/*<br
/> Disallow: /ru/*<br
/> Disallow: /sk/*<br
/> Disallow: /sl/*<br
/> Disallow: /sr/*<br
/> Disallow: /sv/*<br
/> Disallow: /tl/*<br
/> Disallow: /tr/*<br
/> Disallow: /uk/*<br
/> Disallow: /vi/*<br
/> Disallow: /zh-CN/*<br
/> Allow: /<br
/> </code><br
/> As far as I know, Google penalizes for duplicate content. Translated version of your page is considered duplicate content so for SEO benefit it is best to use this method to block access to the translated version of a web page.</p><p
class="MsoNormal">It took about two weeks for all the errors to go away from my Google webmaster tools account but the number of errors started to go down as soon as I updated my robots.txt file to block the spiders from crawling all the translated version of the site. Hope this helps.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/how-to-cleanremove-not-found-errors-from-google-web-master-tools-generated-from-translated-versions-625/feed</wfw:commentRss> <slash:comments>49</slash:comments> </item> <item><title>How to Fix &#8216;Unable to create directory&#8217; error when uploading image into WordPress</title><link>http://www.tipsandtricks-hq.com/how-to-fix-unable-to-create-directory-error-when-uploading-image-into-wordpress-557</link> <comments>http://www.tipsandtricks-hq.com/how-to-fix-unable-to-create-directory-error-when-uploading-image-into-wordpress-557#comments</comments> <pubDate>Wed, 31 Dec 2008 07:58:03 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Video Tutorial]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[web masters]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=557</guid> <description><![CDATA[This post has a textual and video instructions showing how to fix the WordPress &#8220;Unable to create directory&#8221; error when uploading/inserting image into WordPress. I started getting the &#8220;Unable to create directory /wp-content/uploads/2008/12. Is its parent directory writable by the server?&#8221; error when uploading or inserting image into a WordPress post just after upgrading to [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft size-full wp-image-560" title="error_icon" src="http://www.tipsandtricks-hq.com/wp-content/uploads/2008/12/error_icon.png" alt="error_icon" width="64" height="64" />This post has a textual and video instructions showing how to fix the WordPress &#8220;Unable to create directory&#8221; error when uploading/inserting image into WordPress.</p><p>I started getting the &#8220;Unable to create directory /wp-content/uploads/2008/12. Is its parent directory writable by the server?&#8221; error when uploading or inserting image into a WordPress post just after upgrading to WordPress 2.7. First I thought it is a directory permission related error so I tried changing the permission of my &#8216;upload&#8217; directory to 777 but I was still having the same problem. After trying many things I was able to fix it using the following method.</p><ol><li>Log into your WordPress Admin account.</li><li>Go to &#8216;Miscellaneous&#8217; Settings options from the &#8216;Settings&#8217; menu.</li><li>In the Miscellaneous Settings put wp-content/uploads in the &#8220;Store uploads in this folder&#8221; text box.</li><li>Save the Changes by hitting the &#8220;Save Changes&#8221; button and you are done.</li></ol><h3>Fix WordPress Image Upload Error: Video Instructions</h3><p><object
width="425" height="344" data="http://www.youtube.com/v/DKegZtFGchI&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param
name="allowFullScreen" value="true" /><param
name="allowscriptaccess" value="always" /><param
name="src" value="http://www.youtube.com/v/DKegZtFGchI&amp;hl=en&amp;fs=1" /><param
name="allowfullscreen" value="true" /></object></p><p>Let me know if this method worked for you.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/how-to-fix-unable-to-create-directory-error-when-uploading-image-into-wordpress-557/feed</wfw:commentRss> <slash:comments>56</slash:comments> </item> <item><title>How to import WordPress SQL database backup file without having &#8216;create new database&#8217; privileges in phpMyAdmin</title><link>http://www.tipsandtricks-hq.com/how-to-import-wordpress-sql-database-backup-file-without-having-create-new-database-privileges-in-phpmyadmin-415</link> <comments>http://www.tipsandtricks-hq.com/how-to-import-wordpress-sql-database-backup-file-without-having-create-new-database-privileges-in-phpmyadmin-415#comments</comments> <pubDate>Sun, 07 Dec 2008 06:14:42 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[database import]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[web masters]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=415</guid> <description><![CDATA[In this article I have explained how you can import your WordPress SQL database backup file even when you do not have the &#8216;create new database&#8217; privilege in phpMyAdmin. This is particularly useful when you are trying to import the SQL database as part of transferring your site from one host (old-host.com) to another host [...]]]></description> <content:encoded><![CDATA[<p>In this article I have explained how you can import your WordPress SQL database backup file even when you do not have the &#8216;create new database&#8217; privilege in phpMyAdmin. This is particularly useful when you are trying to import the SQL database as part of transferring your site from one host (old-host.com) to another host (new-host.com) and your new host doesn&#8217;t have the &#8216;Create new database&#8217; privilege in phpMyAdmin.</p><p>In your phpMyAdmin page check for the &#8216;create new database&#8217; privilege. If the privilege settings looks like the example shown below then your database import following the normal method is going to fail as it will try to create a database and you don&#8217;t have permission to do that.</p><div
id="attachment_417" class="wp-caption alignnone" style="width: 202px"><a
href="http://www.tipsandtricks-hq.com/wp-content/uploads/2008/12/create_new_db_no_privilege.png"><img
class="size-medium wp-image-417" title="create_new_db_no_privilege" src="http://www.tipsandtricks-hq.com/wp-content/uploads/2008/12/create_new_db_no_privilege.png" alt="create new database no privilege" width="192" height="40" /></a><p
class="wp-caption-text">No privilege to create new database</p></div><p>You will get the following error when trying to import the database file:</p><p><span
style="color: #ff0000;">#1044 &#8211; Access denied for user &#8216;username&#8217;@'localhost&#8217; to database &#8216;database_name&#8217;</span></p><p>To get around this problem and to complete importing your database to your new host do the following:</p><ol><li>Login to your cPanel and click on &#8216;MySQL Databases&#8217;.</li><li>Create a new database with your preferred name (I am going to use the name &#8216;<span
style="color: #ff9900;">newDB</span>&#8216; for easy reference. You should have privilege to create a new database through this MySQL Database panel even though you don&#8217;t have privilege to create new database through phpMyAdmin).</li><li>Open the sql database file that you are using for importing (e.g. &#8216;<span
style="color: #008000;">localhost.sql</span>&#8216;) in a text editor such as notepad.</li><li>Search for the text &#8220;CREATE DATABASE&#8221;</li><li>Delete this line containing the create database command.</li><li>In the next line change the database name (<span
style="color: #3366ff;">tips_tricks</span> in this case) to the newly created database (<span
style="color: #ff9900;">newDB</span>) in step2 after the word &#8216;USE&#8217;.</li><li>Now use the import wizard from phpMyAdmin to import the database and it will use the already created database to import all the tables without any problem.</li></ol><h3>Example of the sql database file before modifying</h3><p><span
style="color: #3366ff;">&#8211;<br
/> &#8211; Database: `tips_tricks`<br
/> &#8211;<br
/> CREATE DATABASE `</span><span
style="color: #3366ff;">tips_tricks</span><span
style="color: #3366ff;">` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;<br
/> USE `</span><span
style="color: #3366ff;">tips_tricks</span><span
style="color: #3366ff;">`;<br
/> </span></p><h3>Example of the sql database file after modifying</h3><p><span
style="color: #3366ff;"> <span
style="text-decoration: line-through;">CREATE DATABASE `applewoo_applewood` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;</span><br
/> USE `</span><span
style="color: #ff9900;">newDB</span><span
style="color: #3366ff;">`;</span></p><p>Alternatively, you could request your web hosting provider to add database creation privilege to your phpMyAdmin.</p><p>Hope this will help anyone having a similar problem. Feel free to share your thoughts by leaving comments in the comment area below.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/how-to-import-wordpress-sql-database-backup-file-without-having-create-new-database-privileges-in-phpmyadmin-415/feed</wfw:commentRss> <slash:comments>34</slash:comments> </item> <item><title>How to fix WordPress.com Stats plugin showing zero (0) visitors!</title><link>http://www.tipsandtricks-hq.com/how-to-fix-wordpresscom-stats-plugin-showing-zero-0-visitors-265</link> <comments>http://www.tipsandtricks-hq.com/how-to-fix-wordpresscom-stats-plugin-showing-zero-0-visitors-265#comments</comments> <pubDate>Mon, 17 Nov 2008 06:02:08 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[web masters]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=265</guid> <description><![CDATA[This article explains how to fix WordPres.com Stats plugin when it doesn&#8217;t show any statistics for your site or shows 0 visitors. I recently installed WordPress.com Stats Plugin on one of my sites. WordPress.com Stats provides statistics on most popular metrics about the visitors to your site. Unfortunately, for some reason the plugin wasn&#8217;t working [...]]]></description> <content:encoded><![CDATA[<p>This article explains how to fix WordPres.com Stats plugin when it doesn&#8217;t show any statistics for your site or shows 0 visitors.<span
id="more-265"></span></p><p>I recently installed WordPress.com Stats Plugin on one of my sites. WordPress.com Stats provides statistics on most popular metrics about the visitors to your site. Unfortunately, for some reason the plugin wasn&#8217;t working properly. It was showing zero (0) visitors for each day (which was wrong) and all the other stat blocks like &#8220;Top posts &amp; Pages&#8221;, &#8220;Clicks&#8221; etc were empty. I tried many things like deactivating, deleting and then reactivating after uploading a new copy of the plugin to address this issue. I even used a different API key to see if that works. None of these methods worked. It was really surprising to me as the plugin works fine on two of my other sites. Anyway, after spending a lot of time trying to fix this issue I decided to read the Frequently Asked Questions (FAQ) section and found the answer to the problem. *hint* always read the FAQ section <img
src='http://www.tipsandtricks-hq.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Here is what you have to do to address this issue if you are having a similar problem.</p><p>Insert the following line in your &#8220;footer.php&#8221; file of your template at the very bottom right before the &lt;/body&gt; tag.</p><p><span
style="color: #993366;">&lt;?php wp_footer(); ?&gt;</span></p><h4>Example of a &#8220;footer.php&#8221; file</h4><p>&lt;div id=&#8221;footer&#8221;&gt;<br
/> &lt;p&gt;&lt;a href=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;&#8221;&gt;&lt;?php bloginfo(&#8216;name&#8217;); ?&gt; &#8211; Example text&lt;/a&gt;&lt;/p&gt;<br
/> &lt;/div&gt;<br
/> <span
style="color: #993366;">&lt;?php wp_footer(); ?&gt;</span><br
/> &lt;/body&gt;<br
/> &lt;/html&gt;</p><p>The reason it was working on my other sites from the start was because the themes used by default had that function call in the &#8220;footer.php&#8221; file. Hope this helps solve your WordPress.com Stats Plugin issue.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/how-to-fix-wordpresscom-stats-plugin-showing-zero-0-visitors-265/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Apache Mod Security update, How to Fix &#8216;Error 406&#8242; or &#8216;Not Acceptable&#8217; issue</title><link>http://www.tipsandtricks-hq.com/apache-mod-security-update-how-to-fix-error-406-or-not-acceptable-issue-259</link> <comments>http://www.tipsandtricks-hq.com/apache-mod-security-update-how-to-fix-error-406-or-not-acceptable-issue-259#comments</comments> <pubDate>Sat, 15 Nov 2008 11:56:11 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=259</guid> <description><![CDATA[Few weeks ago I started having &#8220;Not Acceptable! Error 406&#8221; on one of my WordPress sites when trying to save a post or a page. I kept getting the following message when trying to save a post. Not Acceptable An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server I [...]]]></description> <content:encoded><![CDATA[<p>Few weeks ago I started having &#8220;<strong>Not Acceptable! Error 406</strong>&#8221; on one of my WordPress sites when trying to save a post or a page. I kept getting the following message when trying to save a post.<span
id="more-259"></span></p><p><strong>Not Acceptable<br
/> An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server</strong></p><p>I tried many fixes and nothing seemed to have helped getting rid of the issue. So I decided to reinstall WordPress (<a
href="http://www.tipsandtricks-hq.com/?p=245">How to Uninstall and Reinstall WordPress</a>). Even the reinstall didn&#8217;t help! Later I found out that the &#8220;Not acceptable! Error 406&#8243; occurs due to Mod Security updates on the server. So if you are having a similar problem then you can try one of the following methods to fix it.</p><h3>Solution 1</h3><p>backup your &#8216;.htaccess&#8217; file if you have one in the &#8216;wp-admin&#8217; directory then make a &#8216;.htaccess&#8217; file with the following content and upload it to &#8216;wp-admin&#8217; directory.</p><p>&lt;IfModule mod_security.c&gt;<br
/> SecFilterEngine Off<br
/> SecFilterScanPOST Off<br
/> &lt;/IfModule&gt;</p><p>You can use any text editor such as Notepad to create this file.</p><h3>Solution 2</h3><p>This is the solution that worked for me for my WordPress site. backup your &#8216;.htaccess&#8217; file if you have one in the &#8216;public_html&#8217; directory. Open the &#8216;.htaccess&#8217; file with any text editor and observe the lines between the &#8220;<span
style="color: #333399;"># BEGIN WordPress</span>&#8221; and &#8220;<span
style="color: #993366;"># END WordPress</span>&#8221; tags. Make sure the lines look somewhat like the following. If not then update the file with the following content and upload it to the &#8216;public_html&#8217; directory.</p><p><span
style="color: #333399;"># BEGIN WordPress</span><br
/> &lt;IfModule mod_rewrite.c&gt;<br
/> RewriteEngine On<br
/> RewriteBase /<br
/> RewriteCond %{REQUEST_FILENAME} !-f<br
/> RewriteCond %{REQUEST_FILENAME} !-d<br
/> RewriteRule . /index.php [L]<br
/> &lt;/IfModule&gt;</p><p><span
style="color: #993366;"># END WordPress</span></p><p>Hopefully one of these solutions help fix your &#8220;Not Acceptable&#8221; error. Good luck.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/apache-mod-security-update-how-to-fix-error-406-or-not-acceptable-issue-259/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>How to Uninstall and Reinstall WordPress</title><link>http://www.tipsandtricks-hq.com/how-to-uninstall-and-reinstall-wordpress-245</link> <comments>http://www.tipsandtricks-hq.com/how-to-uninstall-and-reinstall-wordpress-245#comments</comments> <pubDate>Thu, 13 Nov 2008 10:32:51 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[uninstall]]></category> <category><![CDATA[Web development]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Wordpress install]]></category><guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=245</guid> <description><![CDATA[In this post I have explained how you can uninstall and reinstall WordPress. You will rarely think about uninstalling/reinstalling WordPress on your site unless you start having &#8216;Apache security mod rewrite and htaccess&#8217; issue like myself.  I decided to Reinstall WordPress on one of my sites after trying numerous fixes to solve the issue and [...]]]></description> <content:encoded><![CDATA[<p>In this post I have explained how you can uninstall and reinstall WordPress. You will rarely think about uninstalling/reinstalling WordPress on your site unless you start having &#8216;Apache security mod rewrite and htaccess&#8217; issue like myself.  I decided to Reinstall WordPress on one of my sites after trying numerous fixes to solve the issue and getting no result. Some people uninstall/reinstall WordPress to start over from scratch. Anyway, whatever the reason is, you can uninstall and reinstall WordPress the following ways.<span
id="more-245"></span></p><h3>Approach 1 (Full Clean Uninstall)</h3><ol><li>Delete all your WordPress files and folders from the site (usually from your &#8216;public_html&#8217; directory).</li><li>Delete the WordPress database user and table (usual through &#8216;cPanel&#8217; control panel if your site has &#8216;cPanel&#8217;)</li><li>Now Install WordPress from the beginning like you did the first time and you are done (<a
href="http://www.tipsandtricks-hq.com/?p=496">How to install WordPress</a>).</li></ol><h3>Approach 2 (Quick Fix Uninstall)</h3><ol><li>Delete the WordPress database user and table.</li><li>Create new database user and table and update the &#8216;wp-config.php&#8217; file with the new information (alternatively you can reuse the same user name and table name from previous and you won&#8217;t have to update the &#8216;wp-config.php&#8217; file)</li><li>Run the installer (install.php) by visiting your site.</li></ol><p>It&#8217;s always a good idea to use the &#8216;robots.txt&#8217; on your site to control the access of the web robots such as google bot from coming and indexing your site when you are doing extended maintenance. You don&#8217;t want the bot to crawl and index your site when you just deleted the entire content of your site! Read the <a
href="http://www.tipsandtricks-hq.com/?p=166">How to control access of the web crawlers or web robots to your site</a> article to learn more.</p> ]]></content:encoded> <wfw:commentRss>http://www.tipsandtricks-hq.com/how-to-uninstall-and-reinstall-wordpress-245/feed</wfw:commentRss> <slash:comments>23</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.tipsandtricks-hq.com @ 2012-02-08 14:14:42 -->
