1. soura123
  2. RO CSVI
  3. Wednesday, 20 July 2022
  4.  Subscribe via email
hello i have mightysites for a multi site project i m building
everything working grea
i have stuck on the below task
i want a slave site (common files with master but with different db)
to have a cron import on virtuemart
so i did go on cron.php and chenge the

require_once JPATH_CONFIGURATION . '/configuration.php
to
require_once JPATH_CONFIGURATION . '/configuration.toratrome.gr.delivery.irakleio.markets.laxanokipos.php';

and i have an error

Fatal error: Cannot declare class JConfig, because the name is already in use in /home/toratrome/public_html/configuration.toratrome.gr.php on line 2


any ideas how to accomplish to run the configuration for that db only?
Accepted Answer Pending Moderation
Hello,
You have changed the config file to JPATH_CONFIGURATION . '/configuration.toratrome.gr.delivery.irakleio.markets.laxanokipos.php' but there is another file which uses JConfig as class name. The file as per error is "/home/toratrome/public_html/configuration.toratrome.gr.php". May I know what is the use of this file?

You need to rename the class name JConfig in the file "/home/toratrome/public_html/configuration.toratrome.gr.php" and that should solve the error.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
i m afraid that is not resolving anything
it does not open the sites after that...
what we do it must be inside the csvi
so any ideas howto get over this?
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
can we add sth on cron to red jfactory only from the path of configuration i put?
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,

RO CSVI is not build to run on Mighty Sites but it is odd that you get the error because loading the configuration.php is the first place in the flow where this file is being loaded.

What you need to do is debug/test as to when JConfig is loaded from where and then you have an idea of where what needs to be changed. Is the file configuration.toratrome.gr.delivery.irakleio.markets.laxanokipos.php an actual JConfig class or does it load other files? That is something to check.

We have no knowledge of Mighty Sites or how it functions so this is just an educated guess. RO CSVI can load the configuration.php just fine so there must be something happening with the Mighty Sites file(s). That needs to tested/checked.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!