Forums

Error Notice: Use of undefined constant DS - assumed 'DS'

mr.mauscat 08 Jul, 2013
Hi,

I had a working localhost installation of Chronoforms 3.0 on my Joomla 3.1.1 website.
I moved to the server and then the form didnt show anything anymore. I deinstalled Chronoforms and tried to install it again, which was not possible. Instead I am receiving an

Notice: Use of undefined constant DS - assumed 'DS' in ...administrator/components/com_chronoforms/install.chronoforms.php on line 43

Warning: require_once(...administratorDScomponentsDScom_chronoformsDSversionsDSdb_updates.php) [function.require-once]: failed to open stream: No such file or directory in .../administrator/components/com_chronoforms/install.chronoforms.php on line 43

Fatal error: require_once() [function.require]: Failed opening required '...administratorDScomponentsDScom_chronoformsDSversionsDSdb_updates.php' (include_path='.:/usr/local/lib/php/') in .../administrator/components/com_chronoforms/install.chronoforms.php on line 43

The website is here: http://namibian-life-travel.com/

Help would be much appreciated.

Sebastian
mr.mauscat 09 Jul, 2013
Nobody?

In line 43 of the install.chronoforms.php

require_once(JPATH_SITE.DS."administrator".DS."components".DS."com_chronoforms".DS."versions".DS."db_updates.php");

Has anybody an idea what I should change?

Sebastian
GreyHead 09 Jul, 2013
Hi mr.mauscat,

Please check you have downloaded the version of ChronoForms for Joomla! 3.

Bob
mr.mauscat 09 Jul, 2013
Hi GreyHead,

I did. I tried to install the latest Chronoforms_V4_stable_J3.0.zip

Still getting that error. On my localhost it works fine.

Sebastian
GreyHead 10 Jul, 2013
Hi mr.mauscat,

Please edit that file and add this line immediately before line 45
define('DS', DIRECTORY_SEPARATOR)
That should fix the problem.

The explanation is that previous versions of Joomla! defined 'DS' as the directory separator (either / or \ depending on the system) but Joomla! 3 uses DIRECTORY_SEPARATOR instead.

I don't know why you see the error though, I have installed ChronoForms v4 on new Joomla! 3.1 sites with no errors :-(

Bob
mr.mauscat 10 Jul, 2013
Hi Bob,

I did that but now it shows me the following error:

Error

JInstaller: :Install: Cannot find Joomla XML setup file

JInstaller: :Install: Cannot find XML setup file

Error building Admin Menus

???

Sebastian
GreyHead 10 Jul, 2013
Hi mr.mauscat,

You may have an corrupted installer package. I suggest that you download a fresh copy and try that. You should not be having these problems.

Bob
mr.mauscat 10 Jul, 2013
Hi Bob,

Thanks again. I tried it once more with the follwoing error: Error building Admin Menus. Something seems to be f#*%ed up with my installation.

I know. I shouldn't have these problems but I still have them. Nothing found when I searched google and this forum. But no worries. Sometimes it is like that. I will use my old localhost version of the site and build it again on the server. Let's see if it works then. I willlet you now.

Thank you very much for your help,

All the best,
Sebastian
Max_admin 14 Jul, 2013
Hello,

If you don't have any forms then I suggest that you simply uninstall then install the latest CF for J3(make sure there is "J3" in the file name), hopefully this will fix it!

Please also do the same for the plugin/module if you have any of them installed.

Regards,
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.