Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter application does not work on Windows 7 platform
#1

[eluser]caperquy[/eluser]
Hello
I have an application which works fine on Windows Vista. Having a new computer equipped with Windows 7 I just copied the whole application onto the new system. I applied the same config rules such as :
Code:
$config['base_url'] = "http://127.0.0.1:8080/Base_Sursum/";
inside config.php.
I also have a menu which looks as follows :
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

&lt;!-- spellcheck="false" a été rajouté pour désactiver le correcteur orthographique qui autrement intervient dans les zones textarea --&gt;
&lt;html xml:lang="fr" lang="fr" spellcheck="false"&gt;
&lt;head&gt;
&lt;!-- &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt; --&gt;
&lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;
  Base de donn&eacute;es Sursum
&lt;/title&gt;
&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;CSS/polices.css" type="text/css" media="screen" /&gt;
&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;CSS/sursum.css" type="text/css" media="screen" /&gt;
&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;CSS/listes.css" type="text/css" media="print" /&gt;
&lt;!-- Ou copier le code ci-dessus dans les balises : --&gt;
[removed]
  function Lien() {
   [removed]("Passage dans lien");
   i = document.choix.idMembre.selectedIndex;
   [removed]("xxx");
   if (i == 0) return;
   url = document.Choix.Liste.options[i].value;
   parent.location.href = url;
  }
  sfHover = function() {
          var sfEls = document.getElementById("menu").getElementsByTagName("LI");
          for (var i=0; i<sfEls.length; i++) {
                  sfEls[i] {
                          this.className+=" sfhover";
                  }
                  sfEls[i] {
                          this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                  }
          }
  }
  if (window.attachEvent) window.attachEvent("onload", sfHover);
[removed]
&lt;/head&gt;

&lt;body&gt;
<div id="global">
<div id="entete">
  <h1 class="jaunegras">
   <img alt="" src="&lt;?php echo base_url(); ?&gt;CSS/img/logoSursum.jpeg" />
   Famille l’Eleu de la Simone
  </h1>
  <br />
<p class="sous-titre">Application maison. Gestion de la base de donn&eacute;es de la famille de la Simone<br />
</div>&lt;!-- #entete --&gt;
   <ul id="menu">
    <li>&lt;?php echo anchor('','&nbsp;Gestion des membres'); ?&gt;
     <ul>
      <li>&lt;?php echo anchor('gestion_membres/nouveau_membre','&nbsp;Enregistrer un nouveau membre'); ?&gt;</li>
      <li>&lt;?php echo anchor('gestion_membres/selection_membre','&nbsp;Modifier les donn&eacute;es d'un membre'); ?&gt;</li>
      <li>&lt;?php echo anchor('gestion_membres/supprimer_membre','&nbsp;Supprimer un membre'); ?&gt;</li>
     </ul>
    </li>
    <li>&lt;?php echo anchor('','&nbsp;Etats'); ?&gt;
     <ul>
      <li>&lt;?php echo anchor('liste_adresses/toutes_adresses','&nbsp;Toutes les adresses'); ?&gt;</li>
      <li>&lt;?php echo anchor('liste_adresses/adresses_par_branche','&nbsp;Adresses par branche'); ?&gt;</li>
      <li>&lt;?php echo anchor('liste_adresses/adresse_membre','&nbsp;Adresse d'un membre'); ?&gt;</li>
     </ul>
    </li>
    <li>&lt;?php echo anchor('accueil','&nbsp;Recherches'); ?&gt;</li>
   </ul>
It appears that the elements of the menu are listed as shown below (which is not what I expect), but the image is never displayed

Gestion des membres
Enregistrer un nouveau membre
Modifier les données d'un membre
Supprimer un membre
Etats
Toutes les adresses
Adresses par branche
Adresse d'un membre
Recherches
If I clic on one element of the menu I get an error 404. I would greatly appreciate if someone could give me a clue and help me to solve my problem? Many thanks in advance.
CapErquy
#2

[eluser]misplacedme[/eluser]
It sounds like the .htaccess file didn't get copied over when you moved things.
#3

[eluser]CroNiX[/eluser]
or your apache config isn't the same...
#4

[eluser]caperquy[/eluser]
Many thanks for your answer. I checked the points you mentioned but I found no error. I finally solved my problem by uploading the latest version of CodeIgniter (2.1.2) and then now everything works.
Regards.
CapErquy




Theme © iAndrew 2016 - Forum software by © MyBB