Deleting templates_c

Sometimes you simply need to delete /templates_c/ but your server won’t allow you.

You get errors like directory not empty or cannot find directory %%F1 and things like that.

For cPanelâ„¢ users here’s an easy way to do it.

Please Login or Register to read the rest of this content.

The only other way(s) to delete templates_c for some users is ssh as root to the server and then to rm -rf the directory. Lots of users don’t have root access though, so the above tip helps a lot.

Why does this happen? The files are owned by the script, not the user. So you don’t have the necessary permissions to delete them.

On a server that runs SuPHP, this isn’t an issue because ALL files in an account are owned by the same user.

Small security issue

I recently found a small security issue with IndexU Deluxe. Details are available below to paid subscribers only.

Please Login or Register to read the rest of this content.

mod_rewrite, indexu and godaddy

Have you tried running IndexU on Godaddy? Getting mod_rewrite to work properly isn’t as easy as you think.

Of course if you talk to support they’ll say that mod_rewrite is enabled and that you’re seeing problems because of a scripting error. Don’t believe them, it’s their environment that’s causing the issues.

Here’s how to fix it.

Please Login or Register to read the rest of this content.

Google issues with IndexU 5.4x sitemap

The Google webmaster tools recently reported an issue with one of my sitemaps.

It was a warning for an invalid date. The date was set to 0000-00-00 00:00:00.

The links were all imported from an Excel spreadsheet and that is how the date was left on them. In the past this hasnt been an issue. But somewhere along the way the date 1969-01-01 cropped up instead of 0000-00-00

Please Login or Register to read the rest of this content.

Beta software is awesome

Heres a little present for the paid subscribers only.

A beta copy of NiceBackup v 0.8. Nicebackup is a utility to run on a win32 computer to backup cPanel™ accounts. It can handle unlimited accounts and is able to schedule backups when you want them done.

This software is BETA, but it does work. And since its beta there is no support for it. Dont even ask me for a little help because I wont answer you.

There is no manual, no support, and no documentation, but its here and its free for you to try.

If you find a bug post it on the Nicecoder Projects area and it will be looked into.

Nicebackup v0.8

This program will probably be free when it is released, but the plans are not set in stone as to what will be done with. We may limit the abilities of the program and offer a paid pro version.

Translation issues?

Do you have translation issues with IndexU Deluxe?

You’re not alone. But the solution is very easy. Here’s what you MUST have. No this list is not a suggested list, it is a required list. And if you’re missing one part of it then your translation will not work properly.

  1. You must have php compiled with gettext
  2. You must have indexu set to use UTF-8
  3. You must have your database set to use UTF-8
  4. You must have the translated file (included with IndexU)

There have been a number of users lately that have not had PHP compiled with gettext and they have argued the fact that this is an IndexU issue.

This is not an IndexU issue. This is a server issue. When you install IndexU it comes set up to use UTF-8 and has a number of translation files. IndexU has done it’s job once you install it.

Now the server itself has to do it’s job. We have no control over which server you use, but it must meet the above requirements for translations to function. You cannot avoid it, you cannot get around it, you cannot get away with it.

We’re not trying to give you the runaround, gettext is required. Speak to your host about compiling php with gettext. If you are on an unmanaged server then you’ll need to hire someone to compile PHP for you.

But yes, you still need to have gettext.

power_search.php floods

For some reason I (and other users) have found a bunch of losers still attempting to exploit a flaw in IndexU that hasn’t existed in at least two years.

You will notice users trying to exploit this flaw by visiting the power_search.php URL as follows

/power_search.php?pflag=search&title=VGOFmPcTvgSzKlBHGU&url=http%3A%2F%2Fwww.xxxxxxxxxxxxxxxxxxxxxxxxxxxx

The URL is extremely long, and for users of 5.4x and Deluxe nothing happens. But I noticed recently something IS happening.

What’s happening is that IndexU is throwing back a 404 not found page. This is all fine and good, but on one site I have hundreds of these submissions daily which sucks up bandwidth like crazy.

Disabling power_search.php doesn’t help, because IndexU still returns the 404 error. You need to do the following

Please Login or Register to read the rest of this content.

Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’

A user recently experienced the following issue with v5.41 where he would get the error Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ any time a new link is submitted.

The solution was simple.

Please Login or Register to read the rest of this content.

Wordpress integration

As noted on the Nicecoder forum and found elsewhere, the wordpress integration for IndexU is an excellent addition for any IndexU site.

Some users have asked me recently about the WordPress integration and WordPress 2.5x, so here are the results of my testing.

Recently WordPress was upgraded to a new version with a large number of changes. The good news is that after testing, IndexU users can upgrade to the 2.5x versions of WordPress without worry, using the old instructions.

Can’t find variable: onchangeCategories

A few users lately have had issues with add.php giving out errors like the one below

Can’t find variable: onchangeCategories
http://www.yoururl.com/add.php (line 102)

Please Login or Register to read the rest of this content.