You are on page 1of 5

PG Dating Software:

Updating from Dating Pro Amore to


Dating Pro Cupid













PilotGroup.Net 2014

PG Dating Pro Manuals
This is an instruction on how to update the Dating Pro Amore version to the Dating Pro
Cupid version using the automated upgrade script.
If you encounter any difficulties along the way, please contact our Support team by phone
1-866-620-1919, in Live chat or by email.

Update instructions

1. First of all, back up all site files and the site database.

2. Contact Support team in Live Chat or in Helpdesk, and they will generate your personal
download link to download the upgrade script.

3. Download the archive with the upgrade script and decompress it.

4. Connect to the server where your site files are kept. Upload the files and directories into
the root directory of your site, overwriting the older files with the newer files when
prompted.

5. Open .htaccess file and replace this line (line 7):
RewriteCond $1
!^(index\.php|application|temp|uploads|robots\.txt|sitemap\.xml|system/plugins|favic
on\.ico|pginf\.php)
with the following line:
RewriteCond $1
!^(index\.php|application|m/|temp|uploads|robots\.txt|sitemap(\d*)\.xml|sitemap_inde
x\.xml|system/plugins|favicon\.ico|pginf\.php)
6. Next, execute the following SQL queries in the site database. Make sure to use your own
DB prefix instead of [prefix].
INSERT INTO `[prefix]modules_methods` VALUES(NULL, 'install', 'admin_install',
'ajax_demo_content', '1');

INSERT INTO `[prefix]lang_dedicate_modules` VALUES(NULL, '', 'pg_seo',
'lang_dedicate_module_callback_add', 'lang_dedicate_module_callback_delete', '2010-
11-19 13:14:00');

ALTER TABLE `[prefix]seo_settings` MODIFY `controller` enum('user','admin','custom')
NOT NULL;
ALTER TABLE `[prefix]seo_settings` MODIFY `url_template` varchar(255) NOT NULL;

ALTER TABLE `[prefix]seo_settings` DROP COLUMN `default_title`;
ALTER TABLE `[prefix]seo_settings` DROP COLUMN `default_description`;
ALTER TABLE `[prefix]seo_settings` DROP COLUMN `default_keyword`;
ALTER TABLE `[prefix]seo_settings` DROP COLUMN `default_header`;

ALTER TABLE `[prefix]seo_settings` ADD COLUMN `noindex` tinyint(3) NOT NULL;
For every site language version that you have installed on your site, execute the following
SQL queries. Replace [lang_id] with the appropriate language version ID. You will find the
language version IDs in table '[prefix]languages'. Do not forget to replace [prefix].
ALTER TABLE `[prefix]seo_settings` ADD COLUMN `meta_[lang_id]` text NULL;
ALTER TABLE `[prefix]seo_settings` ADD COLUMN `og_[lang_id]` text NULL;
Example:
ALTER TABLE `am_seo_settings` ADD COLUMN `meta_1` text NULL;
ALTER TABLE `am_seo_settings` ADD COLUMN `og_1` text NULL;

ALTER TABLE `am_seo_settings` ADD COLUMN `meta_2` text NULL;
ALTER TABLE `am_seo_settings` ADD COLUMN `og_2` text NULL;
7. Check table [prefix]themes for the presence of 'mini_logo_*' fields. If they are not
present, execute the following SQL queries:
ALTER TABLE `[prefix]themes` ADD COLUMN `mini_logo_width` int(3) NOT NULL;
ALTER TABLE `[prefix]themes` ADD COLUMN `mini_logo_height` int(3) NOT NULL;
ALTER TABLE `[prefix]themes` ADD COLUMN `mini_logo_default` varchar(255) NOT NULL;
For every site language version that you have installed on your site, execute the following
query:
ALTER TABLE `[prefix]themes` ADD COLUMN `mini_logo_[lang_id]` varchar(255) NOT NULL;
8. Check table [prefix]themes for the presence of 'mobile_logo_*' fields. If they are not
present, execute the following SQL queries:
ALTER TABLE `[prefix]themes` ADD COLUMN `mobile_logo_width` int(3) NOT NULL;
ALTER TABLE `[prefix]themes` ADD COLUMN `mobile_logo_height` int(3) NOT NULL;
ALTER TABLE `[prefix]themes` ADD COLUMN `mobile_logo_default` varchar(255) NOT NULL;
For every site language version that you have installed on your site, execute the following
query:
ALTER TABLE `[prefix]themes` ADD COLUMN `mobile_logo_[lang_id]` varchar(255) NOT
NULL;
9. Check table [prefix]cnt_cache_countries and table [prefix]cnt_cache_regions for the
presence of 'lang_*' fields. If they are not present, execute the following SQL queries:
ALTER TABLE `[prefix]cnt_cache_countries` ADD COLUMN `lang_[lang_id]` varchar(255)
NOT NULL;
ALTER TABLE `[prefix]cnt_cache_regions` ADD COLUMN `lang_[lang_id]` varchar(255) NOT
NULL;
Mind the [prefix] and [lang_id] info.

10. Now we are ready to start the actual update. Log in to the administration panel of your
website. Go to 'Modules installation'. You will be asked for additional login and password
info that is kept in file application/config/install.php on your server, lines 4 and 5:
$config["install_login"] = "xx";
$config["install_password"] = "xx";
You will get to page /admin/install/modules. In the left-hand menu, select 'Enable product
updates' (page /admin/install/product_updates) and click 'Install'. The process will run
automatically so you will only need to click 'Finish' when it ends a couple of minutes later.



11. It is possible that some settings were overwritten or set back to default during the
update, so please check the following as well:
-copyright info,
-banner groups names,
-colour scheme / design theme.
Please feel free to contact us if you have any questions.


You will find other manuals on PG Dating Pro software in this forum:
https://pilotgroup.zendesk.com/forums/22985306-Manuals

You might also like