Drupal is up and running but how do I ...?

Urgent -- undefined index: #default_value

all.

I am using drupal 4.7.2. Everything was working fine when suddenly this error crepped in. I am getting undefined index: #default_value error as soon as I visit the root web page. If i try to login..then I get another error undefined index: #invalidate. Both are the erros are coming from form.inc which in include folder

Any idea how it can be handled

Regards

Question for the Master - answer if you can.

Hello,
I am currently running drupal 4.7.0 w/out any CVS modules (need to get that out of the way). I am currently attempting to configure the e-commerce module and specifically the subproducts module so that it will not print all of the subproducts (variations of the product) within the category that the product resides.

What I really need to know is how can I set the "category" of these subproducts to be "none" as opposed to the "parent category" when they are created - so I dont have to do it by hand? I have attempted to set the $node->cid = 0 in the functions that it seemed necessary which I will include below. These functions come from the subproducts.inc file that lives quitely in the subproducts.module.

<?php
/**
* The third stage of the variation generation wizard.
*
* Having received user input on which attribute combinations
* to use for new subproducts, we generate the requested
* subproducts.
*
* @param $node
* A node object representing a parent product.
*/
function subproducts_generate_wizard3($node) {
$node->pparent = $node->nid;
// $node->status = 0;
$node->comment = 0;
$node->voting = 0;
$children = $node->children;
$title = $node->title;
// It's not clear where this array key comes from, but it generates errors and so needs to be unset.
unset($node->path);
$permutations = $_POST['edit']['permutations'];

Drupal's .htaccess and subdomains for development sites

Because of the changes in base url in 4.7, I tried setting up a subdomain for a development site that would then be moved to the root of the domain.

I was able to create the subdomain alright, but I get a forbidden error when I access the sub-domain. My host (Site5) also reported the following:

The problem with your .htaccess file and please correct it.

[Sun Jun 18 20:33:12 2006] [error] [client IP address] Directory index forbidden by rule: /home/domain/public_html/test/
[Sun Jun 18 20:33:12 2006] [error] [client IP address] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

The way subdomains work on Site5 is that a separate directory is created under public_html for every sub-domain created. In this case, there is a live, 4.6.5 drupal site at the root of the domain (public_html) that obviously has a .htaccess file that seems to be somehow creating the problem. I am reasonably sure about this because on another site, I set up just a sub-domain and that works without any problem as there is no drupal site for that domain yet (so no .htaccess file).

Please note that I am not redirecting http://test.domain.com to www.domain.com/test but just looking to use test.domain.com itself.

I know the directory index forbidden error is just a setting to be changed in cpanel, but I have no idea how to get the subdomain working without breaking the current live site.

Site off line page, help needed

I have logged out of my account, not all i get is the site off line page. I cannt find a way of getting back in as there is no where to login, can some body help me please.

Adsense trouble

I am getting an error from the adsense module. In the logs it gives an error 'page not found' for /modules/adsense/adsense_clicks.js. I FTP'ed into my site and see that the file exists at that location. How can I get the log to stop showing it every minute? Has anyone else had this problem?

Thanks

Problem customizing page layout based on taxanomy terms

I'm working with this article:

http://drupal.org/node/46027

Here's my code

1. if (arg(0)=="add") {
2.     include 'page-add.tpl.php';
3.     return; }
4. 		
5. if (arg(0)=="node"&&arg(arg(2)=="edit") {
6.     include 'page-add.tpl.php';
7.     return; }

8. include 'page-default.tpl.php';
9.     return;
10. ?>

I'm getting this error:

Pages

Subscribe with RSS Subscribe to RSS - Post installation