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

Parse error: parse error, unexpected $, expecting T_VARIABLE or '$' in.. (installing 4.7 Beta version)

Im new to drupal, but I decided to install the 4.7. I followed all the installation steps, but when browsing to my website: http://www.chinwooboxing.com, I get this error msg in the browser(after I have removed the .htaccess file that stopped me from getting any msgs) :

Parse error: parse error, unexpected $, expecting T_VARIABLE or '$' in /customers/chinwooboxing.com/chinwooboxing.com/httpd.www/themes/engines/phptemplate/phptemplate.engine on line 94

Installing 4.7.0 beta 4 problems

I've just downloaded and installed drupal 4.7.0 beta 4 to play around with. The installation started well. When I set up the first account, I got the following warnings when I submitted the account info.

* warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\MyServer\www\drupal47\includes\form.inc on line 180.
* warning: Missing argument 1 for password_confirm_validate() in D:\MyServer\www\drupal47\includes\form.inc on line 595.

MySQL connects, but not Drupal?

I'm setting up Drupal on a new site. The database exists, and I can connect to it from the command line using the mysql client. But Drupal reports:

Access denied for user 'myuser'@'www.myhost.com' (using password: YES)

I'm pretty sure I set $db_url correctly, because if I copy and paste from this:

$db_url = 'mysql://myuser:mypassword@www.myhost.com/drupal';

Into the appropriate places in this (including copying & pasting the password when prompted):

mysql -h www.myhost.com -u myuser -p drupal

...I connect with no problem. I also tried localhost for the host name (since it's also correct) but got the same error. I loaded the Drupal database at the command line this way, and have the files on the server, so I should be good to go. I've set up Drupal before but never encountered this specific problem.

Why can MySQL connect when Drupal can't?

For what it's worth:

  • MySQL 4.0.21
  • PHP 4.3.11

Further details on request...

Installation on localhost - database connection

Hi,

just trying to get drupal set up on my local machine, seem to have an issue with database connection.
My database exists, although there are no tables in it.
I have the user permissions all set.
But I get the 'Unable to connect to database server' message when I load index.php.

Database Access Denied Error Message

Hi all!

I'm new to Drupal and have managed to make my way through the installation process. However, everytime I try to add a user or post a story I get a LOCK TABLES error.
I have read a lot of the support posts about this problem. I am with GoDaddy and cannot make changes to the MSQL permissions. and tried fixing the file with the following patch;

--- Z:\database.mysql.inc\database.mysql.inc.old Thu Apr 14 18:50:24 2005 UTC
+++ Z:\database.mysql.inc\database.mysql.inc Wed Apr 27 19:06:28 2005 UTC
@@ -148,10 +148,8 @@
*/
function db_next_id($name) {
$name = db_prefix_tables($name);
- db_query('LOCK TABLES {sequences} WRITE');
- $id = db_result(db_query("SELECT id FROM {sequences} WHERE name = '%s'", $name)) + 1;
+ $id = db_result(db_query("SELECT id FROM {sequences} WHERE name = '%s' FOR UPDATE", $name)) + 1;
db_query("REPLACE INTO {sequences} VALUES ('%s', %d)", $name, $id);
- db_query('UNLOCK TABLES');

return $id;
}

Nevertheless, I continue to get the following error message:

"
user error: Access denied for user: 'NATURALHEALING@%' to database 'NATURALHEALING'
query: LOCK TABLES sequences WRITE in /home/content/j/w/b/jwbabiakr/html/naturalhealing/drupal/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/content/j/w/b/jwbabiakr/html/naturalhealing/drupal/includes/common.inc:384) in /home/content/j/w/b/jwbabiakr/html/naturalhealing/drupal/includes/common.inc on line 192."

image and autopath problems after site was put online

hi all

i have finished a site setup locally on my pc and tody i have published it online.
However i have a few problems.

1. The image module seems to be unable to handle thumbnails and displays the full images instead. visit my gllery at http://www.paphosrotaract.org/rotaract_year_2004_2005_gallery to see what i mean. I have phpinfo.php in the root of my site if that will enable u to see whats wrong.

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal