Having problems installing Drupal? See the Installation Guide for more information.

Image Module Error - What did I do Wrong?

Hi all,

I can use the image module just fine, but in the breadcrumbs, it says "photo gallery" - when clicked (the address being 'site.com/image/') I get the following:
[code]
warning: main(): URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

warning: main(http://ellasattic.co.uk/index.php): failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

PHP Block in Theme

Let me preface this message by letting you know I am not a programmer but a content manager. I have dabbled with PHP to enhance Drupal in some basic ways (including some of the easy but useful scripts posted on this site).

I have created a PHP-type block and the content returned by it is correct but it is not picking up the box style the way an HTML-type block does (i.e. the header, colors, border, etc).

Is it something simple in the PHP code that forces the block to show that I am missing?

Cheers,
Andy

Drupal CVS install: page not found and unable to login

I just uninstalled the debian drupal package and dropped the database, killed /etc/drupal and /usr/share/drupal. After that I downloaded the new one from cvs and used apache's alias to run it out of my homedir. Created the new db and edited the conf file... which hoepfully means I did everything in INSTALL except for the cron.

Need help with mysql message after transfering site from local server to hosted server.

So I backed up my database and copied all of the files onto the hosted site. After unpacking the database to a fresh database supplied by my hosting service I can only get the following message -

Can't connect to MySQL server on 'subdomain.maindomain.com' (111)

I changed the conf.php line 18 item to -

$db_url = "mysql://user:userpw@subdomain.maindomain.com/database";

And I changed line 32 to read -

weather.module, unexpected t_string

Please bear with me -- I am comfortable in perl, not php.

I am trying to add weather.module with a Drupal 4.3.1 installation.

The weather.module fails because file_get_contents is not defined (though I have PHP 4.3.2, and file_get_contents is allegedly available in PHP 4 >= 4.3.0). So I added the following code, fished off the web somewhere:

function file_get_contents($filename, $use_include_path = 0) {
$file = @fopen($filename, "rb", $use_include_path);
if ($file) {
if ($fsize = @filesize($filename)) {
$data = fread($file, $fsize);
} else {
$data = ""; // just to be safe. Dunno, if this is really needed
while (!feof($file)) $data .= fread($file, 1024);
}
fclose($file);
}
return $data;
}

When I add this, the weather module displays an error that reads "unexpected t_string". However, it only flashes in the browser for about 500 msec, then is replaced by a drupal page. How can I get the error to hold still, or go to log page where I can read it at leisure?

Three questions:

1. What's wrong with the code?
2. How can I view the error without being a superhuman speed-reader?
3. Why, when I add pre /pre tags around the code above, does drupal reject my post because of "suspicious input data"?

Thanks!

Cheryl (migrating from ezpublish, and very grateful for a much more

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal