Topic-icon SyntaxError: unexpected token: ':' on SEBLOD article

More
24 Mar 2020 14:21 #7302

Hello,

Thanks for writing to us!

Please open a Support Ticket and share your administrator & FTP login credentials, we'll look into it.

Please Log in or Create an account to join the conversation.

  • Gorka García
  • Gorka García's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
24 Mar 2020 12:34 #7301

Hello,

I have recently purchased and tried vReview extension for Joomla and I have an issue introducing the module on Articles. I have tested it on other pages and it works perfectly.

Specifically, I have tested on a Gridbox page. In this case, I select the Layout Gridbox -> Page and then I publish this profile to a module that I add from Gridbox. vReview works perfectly here, I can check in the Joomla admin backend the reviews and everything seems to work fine.

However, I need to work on most of my articles. To do so I created a different profile with a Layout for Article -> Single Article and then on the SEBLOD article content and forms I add a module with this profile. I have tried to add this by several ways that SEBLOD allows: as a text that loads the module ({loadmodule #}, {loadmoduleid #}, {loadposition}) and mostly on the most correct way I know: by adding a field of Joomla module type with the position (I have created a custom position for this module via de Joomla backend).

In all cases the result is the same: I can see the vReview element but I can't use it in any way. The stars get colorized on hover but nothing happens when I click or when I try to submit the review. I can write in the comment field of vReview but still can't be sent.
Checking the console I see the following error:

SyntaxError: unexpected token: ':'
This error comes from the module JQuery, it is located in the following script:

<s-cript type="text/j-avascript">

var defaults116:review-digital-data = {
profileid : 5,
xmlvalue : {"id":"116:review-digital-data"},
rowId : "116:review-digital-data",
limit : 20,
offset : 0,
multi_star : 0,
enable_rating : 1,
enable_comment : 1,
char_limit : 0,
captcha : 0,
enable_mod : 0,
user : 0,
curr_link : "<article link>",
plgversion : "1.0",
terms_condition : "0",
pagetitle : "<Page title>"
};

The thing here is that this script is not found on the Gridbox example. In this first example, the scripts of vReview are located in modules/modvreview/assets/js/jquery-ui.js, however, in the article I have this script and an extra .js file on a folder with the name of the article. This js file gets its name from the article id + article name, and it is missing on the Gridbox page example.

Of course, the code that gives the error comes from this last js file.

If you could help me understand what I am missing and how can I make this work it would be very much appreciated. If you need any additional information let me know.

Thank you and best regards,

Please Log in or Create an account to join the conversation.

  • Gorka García
  • Gorka García's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
24 Mar 2020 12:22 #7300

Hello,

I have recently purchased and tried vReview extension for Joomla and I have an issue introducing the module on Articles. I have tested it on other pages and it works perfectly.

Specifically, I have tested on a Gridbox page. In this case, I select the Layout Gridbox -> Page and then I publish this profile to a module that I add from Gridbox. vReview works perfectly here, I can check in the Joomla admin backend the reviews and everything seems to work fine.
However, I need to work on most of my articles. To do so I created a different profile with a Layout for Article -> Single Article and then on the SEBLOD article content and forms I add a module with this profile. I have tried to add this by several ways that SEBLOD allows: as a text that loads the module ({loadmodule #}, {loadmoduleid #}, {loadposition}) and mostly on the most correct way, by adding a field of Joomla module with the position (I have created a custom position for this module via de Joomla backend).

In all cases the result is the same: I can see the vReview element but I can't use it in any way. The stars get colorized on hover but nothing happens when I click or when I try to submit the review. I can write in the comment field of vReview but still can't be sent.
Checking the console I see the following error:
SyntaxError: unexpected token: ':'
This error comes from the module JQuery, it is located in the following script:

<s-cript type="text/j-avascript">

var defaults116:review-digital-data = {
profileid : 5,
xmlvalue : {"id":"116:review-digital-data"},
rowId : "116:review-digital-data",
limit : 20,
offset : 0,
multi_star : 0,
enable_rating : 1,
enable_comment : 1,
char_limit : 0,
captcha : 0,
enable_mod : 0,
user : 0,
curr_link : "<article link>",
plgversion : "1.0",
terms_condition : "0",
pagetitle : "<Page title>"
};

Last Edit: 24 Mar 2020 12:22 by Gorka García.

Please Log in or Create an account to join the conversation.

Cron Job Starts