Category Archives: Open Source

WordPress 3.2 is here but is full of bugs

WordPress team launched version 3.2 today to coincide with 4th July – American Independence Day. As the WordPress team has always delivered fully tested products in the past, we decided to take the plunge and upgrade to 3.2.

As we started using it, we realized the Manage Links feature was fully broken and we could no longer add or edit or delete any links. We gave the benefit of doubt to the WordPress team, as such minor issues do happen.

Then as we started adding new blogs, and then when we tried adding new images, it gave a serious error that file types were not recognized or something like that.

Now I know for a fact that this version has not been thoroughly tested and has bugs which is not worth using right away. So if a patch is released within a day or so, we will apply it or roll back to the previous version on our blog networks.

If you are planning to upgrade to v3.2, I strongly recommend waiting for a few days before doing so.

Important – 777 Permissions To Be Removed From All Servers

Due to the large scale phishing attacks happening on many of our sites due to the lack of security on many of the domains, we are taking certain steps to protect our servers and the sites from such attacks.

As a part of this, we are disabling 777 access to any website. To accomplish this, we are migrating our servers to SuPHP to secure our PHP and apache configurations. This move will make sure files cannot be written by everyone and will prevent the issue caused by the 777 permissions that were previously allowed on all files.

We are implementing this change in our shared servers on 30-Oct-2010.
suPHP is a tool for executing PHP scripts with the permissions of their owners. With this we have following advantages in shared hosting environment

No folders or files can have 777 permission and it cannot be owned by user “nobody”. This is one of the greatest advantage where we can secure the files and folders in the site as none can do anything other than the site owners.

This change will go in at midnight on 29-Oct-2010 and as of 30-Oct-2010 we will not allow any 777 access on any of our servers.

Site Owner should make following in their site
1. Make sure no 777 permission files or folders/directories present in the site. The recommendation is to change it to 755 for folders and 644 for files.
2. .htaccess file should not contain any php_value. Please move those values under php.ini file instead.

Please feel free to contact us if you need any help with this.

Resellers please pass this is to the respective site owners.

WordPress upgradation from 2.9.2 to wordpress-3.0.1

From our previous post

We have successfully upgraded our wordpressmu from 2.9.2 to 3.0.1

Here are the steps we followed for this upgradation
http://wpmu.org/how-to-upgrade-wpmu-2-9-2-to-wordpress-3-0-in-5-easy-steps/

We have also upgraded all our plugins and we are happy to say that we are in WordPress-3 club.

Have fun!!

Magento Upgrade from 1.3.1 to 1.4.1.1

Magento is one of the preferred ecommerce open source platforms we specialise in at Auro Infotech. Recently, Magento announced upgrade to 1.4.1.1 and we also decided to upgrade on of the Magento based sites that we manage.

In version 1.3.1, we faced the following error when we checkout using paypal
“There was an error proccessing your request”

We did many studies to fix this and we finally we decided to upgrade the magento to the latest version as we thought this might fix the issue. Since we developed the skin(theme) for the site, we knew it should be done with great care as we need to merge our custom code with magento code.

As always, before upgrading the live site, we upgraded the testing site with many trial and errors and atlast we did it successfully in testing. We have the steps noted down below which we took while upgrading the production site. Below are the steps which we like to share

Continue reading

WordPress migration to php-5.3

Today we migrated one of our wordpress site from one server to another.
Present server has the version PHP-5.2.9 and the new server has PHP-5.3.2

Once we copied the files and database to the new server, it started showing has the following errors

Assigning the return value of new by reference is deprecated in /home/sitename/public_htm/wp-settings.php line xx

This error should be fixed by removing “&” in wp-settings.php where you have assigned a variable

For example, I have given below one assignment statement

$GLOBALS[‘wp_query’] =& new WP_Query();

Remove ‘&’ and make the line look like below

$GLOBALS[‘wp_query’] = new WP_Query();

Similarly remove “&” in all places whereever this error is thrown.

One more thing is function “set_magic_quotes_runtime()” in deprecated in php-5.3.2
Instead we should use the following
ini_set(“magic_quotes_runtime”, 0);

Also, the function split() is deprecated in php-5.3.2. Instead we should use explode ()

I had already posted a week back other functions that are deprecated in PHP-5.3.2.

Today I found other 3 functions. I will keep posting my updates whenever I find the old functions deprecated in PHP-5.3.2

Knowledge tree installation in CentOS 5

by Aravind

This blog explains the steps to install Knowledge Tree on a Cent OS server.

We were asked to install a Knowledge Management System called Knowledge Tree for one of our shared hosting clients, whose website is hosted in Centos 5.5 server.
Once we got this requirement I went through knowledgetree web site and I found that they do not provide the documentation for the installation in Centos server but they support RedHat Linux 5 and it is clearly explained in their Platform Requirements page.  So I decided to try it out on my own and once got it installed successfully, am sharing the steps with you.

Continue reading

Function eregi_replace is deprecated in PHP

– post by Aravind

We are using a search engine called Search Plugin .  This search engine uses PHP code that was working well on its old server which had PHP 5.1 on it.

Recently, we migrated Search Plugin to one of our semi-dedicated server for enhancing its usability. After we migrated to this server, we faced the following error.

Deprecated: Function eregi_replace() is deprecated in /home/searchpl/public_html/include/searchfuncs.php on line 582

We came to knew recently that the in-built function mentioned in the error eregi_replace() is deprecated (or removed) in PHP 5.3.2. The recommendation from PHP is to use the alternate function preg_match.

Please see the sample code below

Continue reading

OpenX Third Party Click Tracking – Still An Issue

We had posted sometime back about a click tracking issue with unknown third party providers, that we were facing with OpenX.

We tried approaching different people, including OpenX forums, third party freelance sites, etc. A consistent answer we received was, if the third party advertiser does not support the extra parameter in their ad code, there is no way to capture the clicks from their ads. We were puzzled at realizing that such a simple requirement might not be handled in OpenX.

Very interestingly, someone from OpenX Services wrote to me a few days after the last post was published, saying that they could solve this problem for us.

Continue reading

OpenX Statistics missing after upgrade to 2.8.3 – – Reverting back to 2.8.2

As many of you know, our ad server runs on OpenX.

Two interesting things happened yesterday:

1. We upgraded to the latest version of OpenX (2.8.3)
2. We also moved our adserver to a new server.

Right after these changes, the statistics stopped getting captured.

Continue reading

OpenX – Click Tracking of unknown providers

We are currently having some difficulty in tracking clicks from unknown ad providers.

We are looking for OpenX experts to help us with this. Please find below our requirements with the details of the issue. If you feel you could be of any assistance, please feel free to reply.

This is a very quick task for a OpenX expert as it should not take much time for an OpenX expert to solve this.

We have OpenX installed on one of our servers.

1. We have created a new advertiser, a new campaign under this advertiser and a new banner as ‘OpenX Generic HTML Banner’. The following is a sample code of this banner:
<script type=”text/javascript”>
<!–
var guruji_ad_client = “gu12345678”;
var guruji_ad_id = “123”;
var guruji_ad_type = “2”;
var guruji_ad_bgcolor = “FFFFFF”;
var guruji_ad_tcolor = “000000”;
var guruji_ad_dcolor = “000099”;
var guruji_ad_ucolor = “000000”;
var guruji_ad_keyword = “movies”;
var guruji_ad_width=”728″;
var guruji_ad_height=”90″;
var guruji_ad_language =”1″;
var guruji_ad_contentType =”3″;
var guruji_ad_open =”1″;
–>
</script>
<script type=”text/javascript” src=”http://adguru.guruji.com/scripts/show_ads.js”></script>

2. We are able to track the clicks for known providers, but are not able to track the click for this ‘unknown provider’ listed above. OpenX recommends using magic macros to solve this.

We are looking for an OpenX expert to help us with the solution to this.

The success of this task will result in clicks correctly captured in the OpenX statistics for this ad.

If you feel you are experienced in setting this up, please bid on this task. If you have any questions on this, please feel free to ask.

If you do not have previous experience with OpenX please do not bid.

For a person experienced with OpenX this should be a easy task, and we have many more such tasks in mind in the future as our ad serving is increasing on OpenX platform.

Regards,

Admin