Forums

Trouble with installation....PLEASE HELP!

scotthartis 30 Aug, 2007
I tried installing ChronoEngine and got the following error:



* JInstaller::install: There is already a file called '/home/content/s/c/o/scotthartis3/html/administrator/components/com_chronocontact/' - Are you trying to install the same CMT twice?
* Component Install: Could not copy PHP install file.


Does anyone know what would cause this and how to fix it?

Thanks in advance!
GreyHead 30 Aug, 2007
Hi scotthartis,

You see this message most often when there has been a previous installation, successful or not.

Look in the Component installer and if ChronoForms shows up then uninstall it. If it isn't listed there then check the site directory with FTP and remove either or both of the componenent/com_chronocontact and administrator/components/com_chronocontact folders (you may also need to drop the jos_chronocontact table from the database if that's been created).

I hope this helps.

Bob
scotthartis 04 Sep, 2007
Thanks for all of the help with installation. Everything worked in terms of the installation after I switched out that XML file.

Now I'm afraid I have another stupid question. I have generated a form in Dreamweaver, then copied the corresponding code to Chronoforms. I did everything as directed in the tutorial, but am having an issue with the "submit" button. It appears to be disabled or something. The rest of my form looks as it should, but the form button isn't showing up.

Take a look:

http://www.charlottehomenet.com/index.php?option=com_chronocontact&chronoformname=your_home_value

Any ideas what could be causing this and a remedy for it?
GreyHead 04 Sep, 2007
Hi scotthartis,

Well, what causing it is the 'Magic Quotes On' problem with Joomla 1.5. The code for your submit button looks like this:
<input type="\\\\\\\\\\\\\\\"submit\\\\\\\\\\\\\\\"" value="\\\\\\\\\\\\\\\"Submit\\\\\\\\\\\\\\\"" name="\\\\\\\\\\\\\\\"Submit\\\\\\\\\\\\\\\""/>
as does much of the rest of your form. What happens is that each time you save the Form another '\' gets added to the list.

What to do about it is more difficult. The easy answer is to turn Magic Quotes Off temporarily - it's a standard PHP setting.

I'm sure that Max will find a fix for the official Joomla 1.5 version. It may be possible to develop a workaround in the meantime. Anyone have any good ideas? I'll scratch my head and have a think.

Bob
scotthartis 04 Sep, 2007
Thanks for the quick response. I am very new to Joomla and php, so I'm not sure what you mean when you say "magic quotes." I understand that it is some feature, but can you explain to me how I go about turning it off as you suggested?

Thanks in advance!
newseed 04 Sep, 2007
You will have to access your hosts File Manager and find the php.ini file and search for Magic and you will find the codes there. Just change them from On to Off.
scotthartis 04 Sep, 2007
Is it possible that I don't already have a php.ini file on my host's server? I have looked all over and can't find one. I did a search on their website and it looks like they say I can upload one to the root directory, but I can't find that there is already one there to edit.

Thanks in advance for the help!
GreyHead 04 Sep, 2007
Hi Scotthartis,

There's probably a php.ini file somewhere but your ISP may not give you access to it. Best place to start is to check their help files - you won't be the first user to want to change this.

I'll check if there's a workaround in the morning but from memory I'm not sure that you can change this on the fly.

Bob
scotthartis 04 Sep, 2007
Thanks Bob. I actually checked their help files and all it says is that you may upload a custom php.ini file. However, I don't see an original php.ini file in my file manager.

I also did a google search to see what I could come up with and it appears others using Godaddy for their hosting have had similar issues.

All of that being said, if you can tell me about a work-around, it would be great. If I can't figure out how to get my forms to submit, this component is pretty much useless.

Thanks in advance!
Max_admin 04 Sep, 2007
Hi,

The PHP.ini has some config lines and settings, one of them tells the magic quotes should be OFF or ON, you may not have access at all cases to this file, however at your joomla site directory there is a file called .htaccess, here you can override the PHP.ini file settings (hopefully your host enables the override option)

an example of .htaccess line to override a PHP setting is :

php_value magic_quotes_gpc = Off
php_value magic_quotes_runtime = Off
php_value magic_quotes_gpc = Off
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scotthartis 06 Sep, 2007
I hate to be so dense, but I can't find the file you are talking about. Should it be in the root directory of my Joomla site? I do have a file called htaccess.txt, but I don't see a .htaccess file. Any specific folders that I should search for it in?
Max_admin 06 Sep, 2007
Hi,

Just rename the htaccess.txt to .htaccess and add those lines!!🙂

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scotthartis 06 Sep, 2007
Thanks Max. It still isn't working. Here are the contents of the file with your additions:

##
# @version $Id: htaccess.txt 4094 2006-06-21 18:35:46Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved.
# @license GNU/GPL
# Joomla! is Free Software
##

#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
#####################################################

##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


## Can be commented out if causes errors, see notes above.
##Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla Directory (just / for root)

# RewriteBase /

php_value magic_quotes_gpc = Off
php_value magic_quotes_runtime = Off
php_value magic_quotes_gpc = Off

########## Begin - Joomla! core SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - Joomla! core SEF Section



Does everything look right with that? I am getting an error code when I try to log into the administrator section after uploading this file and changing the name as you suggested.

Thanks again!
Max_admin 06 Sep, 2007
Plz add those 3 lines at the top of the file before anything else, does this work ? can you navigate your site frontend pages ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scotthartis 06 Sep, 2007
I tried that and got an error message again. When I change the file back to htaccess.txt, I can access the backend admin section, but it doesn't seem to be accomplishing the desired results.

Any other ideas?
GreyHead 06 Sep, 2007
Hi scotthartis,

Looks like that htaccess file is set up for using Joomla SEF and that bit is probably causing the problems.

Create a new .htaccess file as a plain text file with just the three lines from Max in it and upload that to your root directory. Your editor may give it a default .txt suffix - rename it after upload so that it is just called .htaccess

Bob
scotthartis 07 Sep, 2007
Bob,

I tried your trick and it didn't work either. Here is the error message I received:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email]support@supportwebsite.com[/email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/1.3.33 Server at <!-- w --><a class="postlink" href="http://www.charlottehomenet.com">www.charlottehomenet.com</a><!-- w --> Port 80




Did I do something wrong? Does everyone have this much trouble with installation?
GreyHead 08 Sep, 2007
Hi scotthartis,

I don't think that the entries that Max suggested should have caused this crash . . . but I don't know what else might do so :-(

Technically the PHP Manual says that you should chenge boolean (true/false) values with 'php_flag' instead of 'php_value' so you could try:

php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
Ah, just spotted the '=' signs shouldn't be there, maybe they caused the problem.

Bob

Post edited by: GreyHead, at: 2007/09/08 14:48<br><br>Post edited by: GreyHead, at: 2007/09/08 14:48
ccondo 11 Sep, 2007
I have struggled with all joomla 1.5 issues, and finally have it installed and am having the escaping issues with my form.

Is there just a way for me to go into the database and change the saved html somewhere?

I am hosted in a multiserver environment and they run suexec so I cannot use a local .htaccess file.

Or are there any other ideas?

Is there a way to have a local php.ini file somewhere?
GreyHead 11 Sep, 2007
Hi ccondo,

Max will get to a proper 1.5 version soon - though I have no idea how long that will be.

You can go in and change the data in the database table using PHPMyAdmin or something similar. (You'd have to repeat any time that you change the code.)

Local php.ini really is a question for your ISP, I use Dreamhost and they will allow you to compile your own php runtime if you need to - I don't recommend it though.

Bob
Max_admin 13 Sep, 2007
Hi scotthartis,

Does Bob's new line work for you ?

ccondo, we are working to get a J1.5 version up soon, but currently we are fixing the bugs in the last RC1 to have a stable V2.3🙂

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.