SyntaxError: unexpected token: ':' on SEBLOD article

More
4 years 1 month ago - 4 years 1 month ago #7300 by Gorka García
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: 4 years 1 month ago by Gorka García.

Please Log in to join the conversation.

More
4 years 1 month ago #7301 by Gorka García
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 to join the conversation.

More
4 years 1 month ago #7302 by Daniel
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 to join the conversation.

Cron Job Starts