[solved] cannot remove selected items from list page

More
5 years 5 months ago - 5 years 5 months ago #42841 by hooman52
Hi,
when I try to push remove button in list page, over selected items, there is nothing happened and items not removed,
I see an error in console, let me know how to fix this issue
Attachments:
Last edit: 5 years 5 months ago by nordmograph.

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

More
5 years 5 months ago #42845 by nordmograph
Hi,
The page is missing the VM2W_AJAX_URL constant wich should be defined. Has the code been edited?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

More
5 years 5 months ago #42858 by hooman52
Hi,
I didn't change any code of this component, I created a template override for list page and try to remove some code there. Now I completely remove override files and see nothing changed and error is remain in list page.
Joomla verion is 3.9.1
thanks

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

More
5 years 5 months ago #42861 by hooman52
hi,
let me ask you hep me solve this issue, I really need to solve it as soon as posible.
thanks

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

More
5 years 5 months ago #42862 by nordmograph
OK, can you reinstall the extension? It will solve the issue.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

More
5 years 5 months ago #42866 by hooman52
Hi,
I tried to investigate this issue and see this error in page:
Uncaught SyntaxError: Invalid regular expression flags (index:45)
and see there is a line that creates this error :
$doc->addScriptDeclaration(JPATH_COMPONENT .'/assets/js/addthemall.js');
in this file of your component:
components/com_vm2whislists/views/list/tmp/default.php
when I delete this line of code , bug fixed and remove button is working.
I don't know is this line of code is important or not? if yes let me know the correct code
Thanks

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

Time to create page: 0.329 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.