Archive for the 'PHP' Category

How to resolve the System Cache plug-in causing file quota issue in Joomla

Demo Site Request for ProposalsRecently I tried to boost up the performance for one of my Joomla powered web site. So I enabled the System Cache plug-in through Plug-in Manager which is a separate tool from the regular Cache setting in Global Configuration. What does this cache plug-in do? In one simple sentence, this plug-in creates page-level cache files which can serve to the afterwards visitors to reduce the burden of calling database each time.

At the first few days, everything was working fine with some kind of performance gains on this Joomla site. Even at some times it caused mirror inconveniences when I was updating the contents or modules. I had to delete the cached pages to see my new changes. But I was still happy.

Till last week, some of my other web sites started to act weird. I could not upload new pictures, some of web sites threw the 500 Server error (see the below of an example):

“Error 500 – Internal server error

An internal server error has occured!
Please try again later.

Continue reading ‘How to resolve the System Cache plug-in causing file quota issue in Joomla’

Related posts

Send Free Text Messages via SMTP in applications

I was thinking to update some of my ASP.net  applications which are sending alerts to subscribers via emails. The update will allow them to send out alerts as SMS (Short Message System) or text messages to users’ mobile phones.

I believe we need some third-party add-ons in the ASP.NET code to accomplish the above. But in North America, there is a work-around to do so since most of the cellular providers have a email-like system for their phone numbers.

Continue reading ‘Send Free Text Messages via SMTP in applications’

Related posts

How to add your own HTML tag in article content of Joomla 1.5.x

JoomlaI was working on the Joomla 1.5.9 and tried to add one form in an article, but the <form> tag got ripped off. To get it back, you will have to do at least two changes.

  1. Turn off the WYSIWYG Editor (i.e. TinyMCE editor) you were using. To do so, you can update the user profile by choosing no editor for yourself.
  2. Then you need to update the Filterings Options settings in Global Parameter, otherwise all <form> <input> tags will be kept by turning off WYSIWYG editor, but the ACTION attribute in the <form> will be filtered out by Joomla.

Continue reading ‘How to add your own HTML tag in article content of Joomla 1.5.x’

Related posts

Get error 500 in xmlrpc.php file while using Windows Live Writer with WordPress MU 2.6.5

Upgraded the WLW to built 14.0 and tried to open the posts from my WordPress MU 2.6.5 today, but got error message saying “there was error 500 while processing the file xmlrpc.php”.

Double checked my WP settings and found that the xmlrpc had been turned on already. It seemed to me it was a web server parsing php code error.

After poking around the internet, and concluded that there is an issue with the xmlrpc.php code if the server default service is PHP4. That means if your web server parsing your WordPress php code in PHP4 mode, then you would get problems to view blog posts from Windows Live Writer, and in some case you can not upload images in WLW with xmlrpc method.

I hope there will be a fix soon. But right now, I will have to force my web server to call the WordPress codes in PHP5 mode.

To do so, just add the following two lines at the begining of your .htaccess file.

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

 

After that, you just upload the modified .htaccess file and everything should be fine again.

Good Luck!

Related posts

Fixed Paypal payment method not showing in OSCommerce check-out

OSCI downloaded a OSC template and installed on the server. Since the included OSC is not the latest version, I had to upgrade the Paypal method files. Today, I modified some fields in the Paypal Website Payment Standard, and surprisedly the payment method disappeared from the Check Out page. And I can see an message on the page saying “This is currently the only payment method available to use on this order.” And after I clicked continue, I would get the error of “no payment method selected”.

After playing around, I finally found out the cause. I think there is a bug in the OSC code I have in the template. Since I do not have time to mess up the code, I am using a tip to get the Paypal method back. Hope it will help you too.

Tips: just make sure your Payment Zone of your Paypla method set up to –none–. That is it.

Related posts

How to put sticky post and remove page title on front page of Joomla

JoomlaRecently I am playing around with Joomla 1.5.x and wanted to write down two tips I learned about the Front Page setup.

First, how to remove the “Welcome to Front Page” page title in a Joomla 1.5.x with sample data installed. It sounded easy, but it still took me some time to find the right spot to do so.

  1. Move your mouse over the Menus top menu in administrator back-end, and then select Main Menu option or any menus with Home (Type of Articles-Frontpage) menu item.
  2. Click the title of Home or other name but with the type of Articles –> Frontpage
  3. Expand the Parameters (system) right menu, and you will see there are two options of Page Title and Show Page Title for you to resolve this “Welcome to Front Page” issue.

Continue reading ‘How to put sticky post and remove page title on front page of Joomla’

Related posts

How to setup download product in OScommerce v2.2RC2

Never thought enabling Downloadable product type in OScommerce would be so difficult. Anyway, I would like to post my nearly 3 hours’ work to reduce your frustration.

First, make sure you installed the latest version of OsCommerce and everything else is working.  And you have already read the basic how-to tutorials from the official web site knowledge base at

 http://www.oscommerce.info/kb/osCommerce…

If you do not have time to read all of the above, do not need to worry, since I will repeat the how-to in this post with more explanation.

Continue reading ‘How to setup download product in OScommerce v2.2RC2′

Related posts

How to use XML Sitemap plug-in with WordPress MU

A couple months ago, I wrote a blog post in my Chinese blog about my own experience of configuring XML SiteMap plugin in the WordPress MU. It turned out that a lot of MU owners had the same problem before. So I decided to re-write it in English and share with you here.

I guess you should be familiar what the Google SiteMap is if you would like to increase your website/blog’s rank in search result. And you are using WordPress as your blogging platform, you might be interested in a plug-in called Google (XML) Sitemaps Generator for WordPress, which can allow you to easily generate Google XML SiteMap within your blog. But unfortunately the XML Sitemaps Generator (version 3.0.3) I used was not developed for WordPress MU. By default, it could only generate the XML sitemap for the primary blog not all other blogs in your WordPress MU.

Well, you can try your lucks on the author’s website to see whether he/she released a newer version to resolve the issue, or you can do it yourself by changing a few lines of code as I shared below.

Continue reading ‘How to use XML Sitemap plug-in with WordPress MU’

Related posts

Get FCKeditor work on Oscommerce 2.2 release 2a

OSCommerceToday I downloaded All In One FCK Editor WYSIWYG Editor Oscommerce add-ons since I needed to add a WYSIWYG(What You See Is What You Get) HTML editor on one of my client’s Oscommerce Shopping Cart site.

After I did all uploadings and changes according to the Readme document, I got the following errors after I refreshed the back-end page.

Warning: Failed opening ‘fckeditor_php4.php’ for inclusion (include_path=”) in /var/www/html/catalog/admin/fckeditor/fckeditor.php on line 75

Continue reading ‘Get FCKeditor work on Oscommerce 2.2 release 2a’

Related posts

Fix wp.getusersblogs error in Windows Live Writer after upgrading to WordPress MU 1.5.1

I have been using Microsoft Windows Live Writer to update my blogs for a while, but today I got some errors when I tried to publish a post to my newly upgraded WordPress MU 1.5.1 blog. After this error message, I got a prompt windows to ask my blog logon user name and password. I thought the upgrading changed the user information anyhow, so that I updated my logon password, and re-typed it in Live Writer. When I re-published, again saw the same error. I stopped, and then tried to view the web blog within the WLW. The same wp.getusersblogs error popped-up as I encountered during the publishing.

The following is the detailed error message:

log Server Error – Server Error -32601 Occurred server error. requested method wp.getUsersBlogs does not exist. You must correct this error before proceeding.

Continue reading ‘Fix wp.getusersblogs error in Windows Live Writer after upgrading to WordPress MU 1.5.1′

Related posts

new changes in wp-config.php for WordPress MU 1.5.1

It has been closely two weeks since WordPress released its latest MU 1.5.1 version. I could not get a chance to upgrade mine till today. Normally I just upload all the newer files but wp-config.php to my server via FTPing. During this upgrading, I noticed that the last modified time for newer version of wp-config-sample.php has been changed. To find out what kind of changes inside, I opened the wp-config-sample.php file.

Continue reading ‘new changes in wp-config.php for WordPress MU 1.5.1′

Related posts

The error ‘Unable to determine the page link’ in OSCommerce MS 2

Challenge: Recently I tried to move an older OSC website from one host to another host. After I made changes in the configure.php files and uploaded them to the new host, the first page could not be loaded such error messages as “unable to determine the page link…”. And everything would be fine if I commented out any codes with basename($PHP_SELF) function.

Continue reading ‘The error ‘Unable to determine the page link’ in OSCommerce MS 2′

Related posts

How to set up your own customized template overrides?

Like I copied a post from zen-cart on last weekend, I set up a blank new customized template for zen-cart. But it does not do any good if I do not create any my own overrides to display my own style/texts. The following is a how-to from zen-cart support website covering this topic, and I am pasting here for my own reference.

Basically in the /includes/templates/CUSTOM you can start with copying any templates files/sub-folders from /includes/templates/template_default or /includes/templates/classic, and then whatever your style changes there. But some language related changes should be changed in /includes/languages/LANGUAGE folder.

Continue reading ‘How to set up your own customized template overrides?’

Related posts

How to customized your own template for Zen-cart shopping cart Open Source application

This article is copied from the official zen-cart support web site.

Since Version 1.3.+ Zen Cart™ has moved away from its old table based layout to a CSS based layout.

CAPITALIZED words refer to a folder or language that you choose. We use CUSTOM for your template and ENGLISH for your language by default. Change these if needed.

Continue reading ‘How to customized your own template for Zen-cart shopping cart Open Source application’

Related posts