Fork me on GitHub

Migrating/Moving to a new Server  Bottom

  • As mentioned in previous posts, I have moved my website to a different web host. I got the site up and running (more or less) but I'm having some issues with regards to layout.

    The only Block Position that is available is Left Blocks and when I try to create a new position it gives me the following error:

    Exit-Handler: Exiting after SQL-error
    --------------------------------------------------------------------------------
    Error! Creation attempt failed.

    Also, most of the Modules are in the 3rd Party Panel and when I try to move them, I get the following error:

    Exit-Handler: Exiting after SQL-error
    --------------------------------------------------------------------------------
    Error! Sorry! Could not add module to module category.

    Also, for some reason, when I try to add "php_flag display_errors on" to the .htaccess file I get a database connection error on the page and get the following entry in my server's Error Log:

    .htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

    Anyone have any ideas? I should mention that I Exported my MySQL database (version 4.1.20) using the SQL export compatibility set to MYSQL40 and Imported the database to my new host (version 5.0.85).

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • just guessing:
    1) you have new dbuser name because you are on new host and need to adjust config.php
    2) new host has different restrictions regarding use of .htaccess and you need to use php.ini instead.
  • I went through the install process for Zikula 1.1.2 and put in the new dbuser name and DB name. I checked the config.php and it's fine.

    I've heard the php.ini mentioned a number of times but have no idea how to access it. I think it's done by the server admin, isn't it?

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • re: php.ini
    it depends on the host. mine runs PHP as cgi and therefore .htaccess is limited. I use php.ini and the host can provide a 'model' to use. I suggest you ask you host or check their support forums for the model.

    if your DB credentials are inaccurate it seems nothing would work... maybe try disabling the .htaccess in your site root and see what happens.
  • I removed the .htaccess file and tried to creat a block position with the same result

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • Who are you hosting with? It sounds like it could be a server issue. What version of MySQL/PHP are they running?

    --
    Home Page | Find on Facebook | Follow on Twitter
  • HostPapa. They're using MySQL 5.0.85 and PHP 5.2.11.

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • I went into config.php and changed Development Mode to 1 and got the following message:

    Parse error: syntax error, unexpected $end in /home/(my username)/public_html/config/config.php on line 1

    I changed it back to 0 and am still getting the same message.

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • - development mode 1 is not for you
    - line 1? check for unwanted characters ....
    What editor did you use to alter config.php??
    I'm guessing something got mixed up there...

    - Igor
  • After a couple of reinstalls it looks like things are mostly back to normal....

    I am however getting the following error when I try to post an article using PagEd:

    0.010s> insert into zk_paged_titles (topic_id, template_id, num_sections) values (2, 0, 2)
    0.010s> SQL ERROR: Duplicate entry '0' for key 1

    Any thoughts?

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • HUZZAH! Success! I went into the database and changed the "x"_ID to autoincrement and it's working! Yay!

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other

This list is based on users active over the last 60 minutes.