Jump to content


Corporate Sponsors


Latest News: (loading..)

Install porblem: Langauge error


10 replies to this topic

#1 pstrid

  • Community Member
  • 100 posts
  • Real Name:Paul Strid
  • Location:Philadelphia, PA

Posted 28 October 2006, 01:19

Trying to install 3.0 alpha 3, code apears instead of text.

When I go to install/index.php, 'page_title_welcome' code appears on page instead of 'Welcome' text. Anyone know why?

Runing php 4.4.1 with register_globals off. I changed the name of the 3.0 alpha 3 directory to: http://www.my-wesite-name.com/_osc3a/install/index.php

Does 3.0 alpha 3 need to be installed in root directory? Can directory path names be changed (ie /_osc3a)?

Anyone have any ideas why this isn't installing correctly?

Quote

page_title_welcome
text_welcome

box_server_title
box_server_php_version 4.4.1

box_server_php_settings
box_server_register_globals box_server_on
box_server_magic_quotes box_server_off
box_server_file_uploads box_server_on
box_server_session_auto_start box_server_off
box_server_session_use_trans_sid box_server_off

box_server_php_extensions
box_server_mysql
box_server_gd
box_server_curl
box_server_openssl


#2 AlanR

  • Community Member
  • 3,711 posts
  • Real Name:Alan Rogers

Posted 28 October 2006, 03:23

View Postpstrid, on Oct 27 2006, 09:19 PM, said:

Trying to install 3.0 alpha 3, code apears instead of text.

When I go to install/index.php, 'page_title_welcome' code appears on page instead of 'Welcome' text. Anyone know why?

Runing php 4.4.1 with register_globals off. I changed the name of the 3.0 alpha 3 directory to: http://www.my-wesite-name.com/_osc3a/install/index.php

Does 3.0 alpha 3 need to be installed in root directory? Can directory path names be changed (ie /_osc3a)?

Anyone have any ideas why this isn't installing correctly?
Try the installation naming the directory oscommerce. You can always rename the directory later by editing the includes/configure.php file.

It does not have to be in the root directory.
Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux
Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

#3 Frank Heinen

  • Community Member
  • 212 posts
  • Real Name:Frank Heinen
  • Gender:Male
  • Location:The Netherlands (Aalten)

Posted 28 October 2006, 09:40

This should not be a problem. I've installed osC V3.0 Alpha a dozen of times in several places. Try uploading the files again and reinstall.

If this doesn't work then please create a ticket at the development server.

#4 pstrid

  • Community Member
  • 100 posts
  • Real Name:Paul Strid
  • Location:Philadelphia, PA

Posted 28 October 2006, 15:25

Quote

Try uploading the files again and reinstall.
I have tried to re-upload multiple times (using cuteFTP). I have even used different computers. I have also tried with register_globals on and off and still no luck. I have also:
- redownload the source code using SVN and uploaded
- redownload the source code from HPDL's direct link on the announcement (hosted at Sunsite.dk) and uploaded

Quote

If this doesn't work then please create a ticket at the development server.
I did open a Tix (# 119) on Sept. 9th but no real response yet so I figured I would try again on this board.

Please see example screenshot below...
[img]http://img100.imageshack.us/img100/3817/installexampleou0.th.jpg[/img]

I have change the install path as I mentioned (ie directories are name diffrently and it is not in my root). Maybe that is causing something to go wrong?

#5 AlanR

  • Community Member
  • 3,711 posts
  • Real Name:Alan Rogers

Posted 28 October 2006, 16:42

Have you tried my suggestion and leaving the parent folder name as oscommerce?

I'm not implying that the installation should fail if you rename the directory, just that I always start with basics before I try other things when I test new s/w. Let's find out what works and what doesn't.

Edited by AlanR, 28 October 2006, 16:42.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux
Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

#6 pstrid

  • Community Member
  • 100 posts
  • Real Name:Paul Strid
  • Location:Philadelphia, PA

Posted 28 October 2006, 22:22

View PostAlanR, on Oct 28 2006, 12:42 PM, said:

Have you tried my suggestion and leaving the parent folder name as oscommerce?
AlanR,
Never saw your suggestion...the last entry I see on the tix was my reply to your question:

Quote

Are you trying to re-use the database from a prior install or did you start from scratch with a new install?

Anyway, I renamed parent folder 'oscommerce' and still get the same issue.

#7 AlanR

  • Community Member
  • 3,711 posts
  • Real Name:Alan Rogers

Posted 29 October 2006, 02:05

It's obviously not finding the language files.

This is a shot in the dark since I've never had this problem and I've done many installs. So I've no real way to test my solutions.

Try changing line 32 in /oscommerce/install/includes/application.php

from:

require('includes/classes/language.php');

to:

require('../includes/classes/language.php');
Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux
Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

#8 Harald Ponce de Leon

  • Manager
  • 3,148 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 29 October 2006, 12:30

You might be experiencing problems with the XML functions (specifically the way it uses references). Are you able to log PHP errors to a file to see what is going on? This can be set in your php.ini configuration file. (don't forget to restart your web server after making the changes)

Frank blogged about problems with the XML functions here:

http://forums.oscommerce.com/index.php?aut...p;showentry=545
Harald Ponce de Leon
osCommerce, Sell With Emotion

#9 pstrid

  • Community Member
  • 100 posts
  • Real Name:Paul Strid
  • Location:Philadelphia, PA

Posted 29 October 2006, 20:22

So I decided to tweak some settings on my FTP app (cuteFTP) to see what would happen.

Re-downloaded source code from sunsite and re-uploaded this 'clean' code.

Now I get:
Fatal error: Class osc_languageinstall: Cannot inherit from undefined class osc_language_admin in /home/www/saludmediterranea/oscommerce/install/includes/classes/language.php on line 15


#10 dynamoeffects

  • Community Member
  • 1,646 posts
  • Real Name:Brian Burton
  • Gender:Male
  • Location:Italy

Posted 30 October 2006, 15:12

View PostAlanR, on Oct 29 2006, 03:05 AM, said:

from:

require('includes/classes/language.php');

to:

require('../includes/classes/language.php');

I wouldn't suggest that as it's a very flimsy way of altering include paths, but I think you have the right idea. Assuming the OP uploaded the language files, he might try finding this line in /oscommerce/includes/application_top.php:

require('includes/configure.php');

and below it, add:

if (strpos(ini_get('include_path'), DIR_FS_CATALOG) === false) {
  ini_set('include_path', ini_get('include_path').':' . DIR_FS_CATALOG . ':');
}

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

#11 AlanR

  • Community Member
  • 3,711 posts
  • Real Name:Alan Rogers

Posted 30 October 2006, 15:19

View Postdynamoeffects, on Oct 30 2006, 10:12 AM, said:

I wouldn't suggest that as it's a very flimsy way of altering include paths...
Did you look at the file? :-"

require('../includes/functions/compatibility.php');

  require('../includes/functions/general.php');
  require('functions/general.php');
  require('../includes/functions/html_output.php');

  require('../includes/classes/database.php');

  session_start();

  require('includes/classes/language.php');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux
Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)