×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Cannot Create or Edit Locations after upgrade

Cannot Create or Edit Locations after upgrade 10 years 1 day ago #25731

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Yesterday I upgraded to v3.6.2 and just noticed today that I cannot edit current locations or create new ones. When I try I just get the below error page. Does anyone have any idea why this may be, or is there a way to roll back to the previous version?

Thanks in advance...

FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

Error Number: 13 (0x8007000d).
Error Description: The data is invalid.

HTTP Error 500 - Server Error.
Internet Information Services (IIS)

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25737

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Error 500 - indicates taht there is an error with the server. Why don't you look at the error log. It should give you more information about what is going on.

Regards,
Daniel

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25752

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Just enabled Error Reporting Daniel and get the below error message:

PHP Notice: Undefined property: stdClass::$customfields in ***\components\com_hotspots\views\hotspot\view.html.php on line 113

Does this make any sense to you?

Cheers...

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25753

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, it does. The customfields field in the hotspots_marker table is missing.
You'll need to create it manually. Which version did you use prior to the update? I get similar reports but nobody is telling me which version they used before the update.
Open your database with phpmyadmin and add the customfields field and it will be all fine.
Look in adminisstrator/components/com_hotspots/sql/install.mysql.sql for the table structure.

Regards,
Daniel

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25754

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi Daniel,

Thanks for the quick reply! I don't actually recall the version I was running prior as I have used the "Live update" tool a couple of times now to update the module, rather than downloading and installing.

On the DB update, I am a bit unsure what exactly it is I need to do, can you explain in a bit more detail please?

Thanks in advance...

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25763

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Try to execute the following query (go to phpmyadmin, select the database and then go to the sql tab and paste the code below):
ALTER TABLE  #__hotspots_marker  ADD   customfields  text NOT NULL;
CREATE TABLE IF NOT EXISTS `#__hotspots_customfields` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL DEFAULT '',
  `slug` varchar(255) NOT NULL DEFAULT '',
  `show` ENUM( 'all', 'category' ) NOT NULL DEFAULT 'all',
  `type` varchar(100) NOT NULL DEFAULT 'text',
  `options` mediumtext,
  `default` varchar(255) DEFAULT '',
  `allow_empty` tinyint(3) NOT NULL DEFAULT '0',
  `params` mediumtext,
  `enabled` tinyint(3) NOT NULL DEFAULT '1',
  `ordering` bigint(20) unsigned NOT NULL DEFAULT '0',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_by` bigint(20) NOT NULL DEFAULT '0',
  `modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
 
 
CREATE TABLE IF NOT EXISTS `#__hotspots_customfields_cats` (
  `hotspots_customfields_id` int(11) NOT NULL,
  `catid` int(11) NOT NULL,
PRIMARY KEY (`hotspots_customfields_id`,`catid`)
) DEFAULT CHARSET=utf8;
 
CREATE TABLE IF NOT EXISTS `#__hotspots_mappings` (
`marker_id` int(11) NOT NULL,
`foreign_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT '',
PRIMARY KEY (`marker_id`,`foreign_id`)
) DEFAULT CHARSET=utf8;

Let me know if it works after that.
Regards,
Daniel

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25766

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
When I run that query I get the following error -

Error
SQL query:
ALTER TABLE #__hotspots_marker ADD customfields text NOT NULL;
CREATE TABLE IF NOT EXISTS `#__hotspots_customfields` (
`id` BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`title` VARCHAR( 255 ) NOT NULL DEFAULT '',
`slug` VARCHAR( 255 ) NOT NULL DEFAULT '',
`show` ENUM( 'all', 'category' ) NOT NULL DEFAULT 'all',
`type` VARCHAR( 100 ) NOT NULL DEFAULT 'text',
`options` mediumtext,
`default` VARCHAR( 255 ) DEFAULT '',
`allow_empty` tinyint( 3 ) NOT NULL DEFAULT '0',
`params` mediumtext,
`enabled` tinyint( 3 ) NOT NULL DEFAULT '1',
`ordering` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0',
`created_by` BIGINT( 20 ) NOT NULL DEFAULT '0',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` BIGINT( 20 ) NOT NULL DEFAULT '0',
`modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY ( `id` )
) DEFAULT CHARSET = utf8;
 
MySQL said: Documentation
#1064 - You have an error IN your SQL syntax; CHECK the manual that corresponds TO your MySQL server version FOR the RIGHT syntax TO USE near 'CREATE TABLE IF NOT EXISTS `#__hotspots_customfields` (
  `id` bigint(20) unsig' at line 2

I'm sure it's just missing a character or something somewhere, but I wouldn't know where to look!

Cheers...

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25788

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi Daniel,

Just wondering if you had any further advice on this?

Cheers...
Glenn

PS. Still hoping to get the Pro version of this plugin soon, currently just tryig to sort out the Maps API license as it's for internal use at my company and for internal use we have to have a valid API license.

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25898

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi Again Daniel,

Do you think I should just delete this extension and install again and start from scratch?

Many thanks in advance...

Glenn

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25899

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Sorry Glenn,
I've missed your message last week.
I forgot to mention that you need to change #__ to your table prefix.
Also - if you don't have any hotspots -> you can of course uninstall, delete the tables and install again. But if you have hotspots you should not lose them. We just need to fix the database and it will be fine after that.

Regards,
Daniel

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25901

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Thanks for this Daniel,

I'll give this a go and see how I get on. I do have some test hotspots so hopefully won't have to uninstall and create again!

I'll let you know how it goes...

Glenn

Cannot Create or Edit Locations after upgrade 9 years 11 months ago #25903

  • glenn
  • glenn's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
That worked out great Daniel,

As usual, thanks again for your help...!

Regards,

Glenn
  • Page:
  • 1
Time to create page: 0.127 seconds