Moved from 1.7.1 to latest, constants includes doesn't work
Posted: 13. January 2015 07:44
Hello friends
I'm experimenting an code update in one php/mysql project.
It was running on a test machine with an old xampp 1.7.1 (php 5.2.9)
The second test machine is running xampp 1.8.3 (php 5.5.9)
Both are xampp portable and both are in a D:\ partition (obviously on two different PCs)
I've cloned the htdocs directory from the first one to the second one
I've dumped and restored the MySQL database
But as soon I try to open any page, they are thrown these errors
The pages that throws the errors are all those that include one php file with language constants
as you can see, for debug I tried also to use the absolute path.
The following ones are the first uncommented lines in the language.php file
Can you kindly hint on what is going on? I'm worried, since after fixing this, I suppose other issues will rise
Thank you
Cor
I'm experimenting an code update in one php/mysql project.
It was running on a test machine with an old xampp 1.7.1 (php 5.2.9)
The second test machine is running xampp 1.8.3 (php 5.5.9)
Both are xampp portable and both are in a D:\ partition (obviously on two different PCs)
I've cloned the htdocs directory from the first one to the second one
I've dumped and restored the MySQL database
But as soon I try to open any page, they are thrown these errors
- Code: Select all
Notice: Use of undefined constant fields_not_filled - assumed 'fields_not_filled' in D:\xampp\htdocs\tickets\lang\language.php on line 18
Notice: Use of undefined constant create_new_ticket - assumed 'create_new_ticket' in D:\xampp\htdocs\tickets\lang\language.php on line 22
Notice: Use of undefined constant ticket_created - assumed 'ticket_created' in D:\xampp\htdocs\tickets\lang\language.php on line 23
Notice: Use of undefined constant fill_in_form - assumed 'fill_in_form' in D:\xampp\htdocs\tickets\lang\language.php on line 24
Notice: Use of undefined constant
The pages that throws the errors are all those that include one php file with language constants
- Code: Select all
include "D:\\xampp\\htdocs\\tickets\\lang\\language.php"; // Language pack file
as you can see, for debug I tried also to use the absolute path.
The following ones are the first uncommented lines in the language.php file
- Code: Select all
16 $LANG = array( );
17
18 $LANG[fields_not_filled] = "<li id=\"errorLi\">
19 <h3 id=\"errorMsgLbl\">Compilare i campi richiesti.</h3>
20 <p id=\"errorMsg\">Compilare i campi con l'<strong>*</strong> rosso.</p>
21 </li>";
22 $LANG[create_new_ticket] = "Creare un nuovo ticket";
Can you kindly hint on what is going on? I'm worried, since after fixing this, I suppose other issues will rise
Thank you
Cor