View Single Post
  #1 (permalink)  
Old 06-01-2007, 06:38 AM
phlexus phlexus is offline
New Pligger
 
Join Date: Oct 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Error: You may have typed the template name wrong or it does not exist.

After install:

Creating database tables...
Creating table: 'categories'...
Creating table: 'comments'...
Creating table: 'friends'...
Creating table: 'links'...
Creating table: 'trackbacks'...
Creating table: 'users'...
Creating table: 'tags'...
Creating table: 'votes'...
Creating table: 'pageviews'....
Creating table: 'config'....
Creating table: 'messages'....
Creating table: 'modules'....
Creating table: 'formulas'....
Creating table: 'Saved Links'....
Creating table: 'Misc Data'....
Creating table: 'Totals'....
Creating 'god' user...
Inserting default categories...
Inserting default modules...
Inserting default formulas...
Inserting default 'totals' data...
Inserting default 'config' data...

Tables were created successfully!

Error: You may have typed the template name wrong or it does not exist. Click here to fix it.

Error: You may have typed the template name wrong or it does not exist. Click here to fix it.

Please fix the above error(s), install halted!



Ok, seems that the template isn't being set. When clicking 'Click here to fix it' you're taken to the admin_config.php page, but this one is completely empty. No output whatsoever.

Anywayz, as the template name isn't being set, I added
Code:
else {
	$thetemp = "yget";
}
after
Code:
if(isset($_COOKIE['template'])){
	$thetemp = $_COOKIE['template'];
}
.

This seems to fix it. you get:

Pligg appears to have installed successfully!

Things to do next:

* chmod "../libs/dbconnect.php" back to 644, we will not need to change this file again.
* DELETE the "./install" directory from your server once you have successfully installed Pligg.
* Login to the admin area (default username: god; default password: 12345)
* Change your password from the default password.
* Configure your installation using the admin area.
* Visit the Pligg Forums if you have any questions.


Looks ok right? Then you go to index.php (or admin_index.php), then you get this error:

Error. The table_prefixconfig table is empty or does not exist

Ok, so the prefix isn't being set. Strange, because it's defined in settings.php.

So changed
Code:
if(!defined("table_prefix")){ define("table_prefix", "pligg_"); }
to
Code:
define("table_prefix", "pligg_");
But then you get a total blank page. NO output. I'm puzzled. What is also strange is that the original settings.ph has 5 lines of code, but after install it only has 1 (include_once mnminclude."settings_from_db.php";), so you have to add the other lines by hand.

Would really like to get this to work. Starting to wonder if it's serverconfig.

PHP: 4.3.10
MySQL: 3.23.58
Reply With Quote