Emergency: Suddenly just homepage shows up. The rest of site "Document Not Found"

Hi, this version 4.5 site was working fine for a long time. http://aasg.info/ Now, suddenly, anything beyond the homepage turns up a ...

Not Found
The requested URL /node was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.aasg.info Port 80

I have checked the database and it seems intact. The config.php file seems to be fine too.

Argument array Problems with Menu.inc

warning: array_keys(): The first argument should be an array in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/menu.inc on line 852.
warning: Wrong parameter count for min() in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/menu.inc on line 852.
warning: array_key_exists(): The second argument should be either an array or an object in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/menu.inc on line 856.
warning: array_key_exists(): The second argument should be either an array or an object in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/menu.inc on line 889.
warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/common.inc:344) in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/common.inc on line 167.
warning: array_key_exists(): The second argument should be either an array or an object in /var/www/vhosts/hourexchange.org/httpdocs/drupal-4.5.2/includes/menu.inc on line 386.

Lovely isn't it... :(

Background, moving site from one server to another. Copied all .htaccess files and made necessary changes where needed.

Went through the support forums and documentation. Directories all have the correct permisssions set.

I've emptied the "Cache" table in the db.

Still no luck...

P

can't create more than 2 path in module

I'm trying to write my own module and I have problem because I can't create more than two path for this module

function koszyk_menu($may_cache) {


  if ($may_cache) {
       $items = array();
     $items[] = array('path' => 'koszyk',
                      'title' => t('Zawartosc koszyka'),
                      'callback' => 'koszyk',
                      'access' => user_access('kupowanie'),
                      'type' => MENU_CALLBACK);
     $items[] = array('path' => 'koszyk/dodaj',
                      'title' => t('Dodaj do koszyka'),
                      'callback' => 'koszyk_dodaj',
                      'access' => user_access('kupowanie'),
                      'type' => MENU_CALLBACK);
     $items[] = array('path' => 'zamowienie',
                      'title' => t('Adres dostawy'),
                      'callback' => 'koszyk_zamowienie',
                      'access' => user_access('kupowanie'),
                      'type' => MENU_CALLBACK);
     $items[] = array('path' => 'zamowienie/koniec',
                      'title' => t('Adres dostawy'),
                      'callback' => 'koszyk_zamowienie_koniec',
                      'access' => user_access('kupowanie'),
                      'type' => MENU_CALLBACK);
  }

  return $items;
}


function koszyk_zamowienie() {

$output = "1234";
print theme('page', $output);

sending mails with external smtp

I have drupal 4.5.8 and I need to send mails using external smtp server. I found this in user module:

function user_mail($mail, $subject, $message, $header) {
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
include_once variable_get('smtp_library', '');
return user_mail_wrapper($mail, $subject, $message, $header);
}
else {
/*
** Note: if you are having problems with sending mail, or mails look wrong
** when they are received you may have to modify the str_replace to suit
** your systems.
** - \r\n will work under dos and windows.
** - \n will work for linux, unix and BSDs.
** - \r will work for macs.
**
** According to RFC 2646, it's quite rude to not wrap your e-mails:
**
** "The Text/Plain media type is the lowest common denominator of
** Internet email, with lines of no more than 997 characters (by
** convention usually no more than 80), and where the CRLF sequence
** represents a line break [MIME-IMT]."
**
** CRLF === \r\n
**
** http://www.rfc-editor.org/rfc/rfc2646.txt
**
*/
return mail(
$mail,
mime_header_encode($subject),
str_replace("\r", '', $message),
"MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-transfer-encoding: 8Bit\n" . $header

Upgrading nightmares - always database errors

I've tried to upgrade from 4.5.x to 4.6.x several times and it fails every time. Now with 4.7 being released, I felt a real urgency to accomplish this feat. So last night I tried again. I was following the Upgrading from Previous Versions howto (4.5 to 4.6.3) last night and although the update.php step went fine - all okays, I still got an error when I tried to happily go to administration pages.

Past errors escape me, but the showstopper last night was:

EXPERTS/NOVICES: Marking Issues As Duplicates - Post A Link!

This is a friendly request / plea of experts and novices alike....
The Drupal forums are huge, in fact MASSIVE!
If you discover that an issue is a duplicate and mark it as such, PLEASE include a link to the active issue.
There is nothing more frustrating than searching for a solution only to find a relevant issue marked as a duplicate, but without a link to the current issue.
Many thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.5.x or older