Unable to simply install and use datatable editor (laravel 9/npm) - laravel

I end up posting this message because I spent my entire day trying to get the datatable editor to work but without success.
I'm on a brand new install of laravel 9 that I haven't installed anything on. I just set up datatable on USER table and it's ok.
But when i want to use datatable editor (I bought the license today) i have this two error in the console :smile:
app-e6e82434.js:45 jQuery.Deferred exception: $.fn.dataTable.Editor is not a constructor TypeError: $.fn.dataTable.Editor is not a constructor
at HTMLDocument. (http://test88.test/users:67:75)
at Q (http://test88.test/build/assets/app-e6e82434.js:45:31424)
at ae (http://test88.test/build/assets/app-e6e82434.js:45:31749) undefined>
Uncaught TypeError: $.fn.dataTable.Editor is not a constructor
at HTMLDocument. (users:67:75)
at Q (app-e6e82434.js:45:31424)
at ae (app-e6e82434.js:45:31749)>
I installed datatable editor via npm then ran the script so that it puts the files in the right place as shown in the doc
but I have the impression that it does not take into account my files or that it considers that I do not have a license.
I installed the debug script but the link it sends me always gives a 404. The debug script crashes when I'm on the page that tries to display the table of users and when I'm on a classic page it shows me that everything is ok except that datatable editor is not loaded.
I think I've tried everything to load this damn script but I can't. Anyone have any idea what the problem is?
I try to make datatable editor running

Related

Joomla - Save article from frontend does not work with Allrounder-Template

I use Joomla Version 3.8.6 with "The ALLROUNDER 3 - Joomla Template" in Version 1.1 and I have a problem when I edit an article via frontend. When I want to save the article nothing happens. All other buttons (close, etc...) work correctly.
In my browser console I get this error message when I click on the save button:
> Uncaught TypeError: Cannot read property 'isValid' of null
> at Object.Joomla.submitbutton (index.php?view=form&layout=edit&a_id=1&catid=8&return=aHR0cDovL3Rlc3QudHNjLXpldXpsZWJlbi5kZS9pbmRleC5waHA=:67)
> at HTMLButtonElement.onclick
This error happens for all different types of users (Editor as well as Super-Administrator)
I deleted the template completely from my webspace and did a new clean install but the error is still there. I tried to disable Jquery-Scripts in the header as well as all other Javascripts but this did not help. I also disabled sequentially all plugins, but the error was still active. Further, I set up textfilter for all users to "No Filter", but the error was still active.
Thank you for your help!

How to save FormView file in Odoo 10 after get an error

Do anyone known how to revert my mistake? it is normal don't be allowed to save this file?
this is the file that I can't save it, please see line 21
I was use the developing mode in Odoo 10 when I editing product.template.product.form file with Formview option, when I miss < in my sentence and I saved. I made this syntax mistake in line 21 field name="x_season"/> sentence. After that I trying to reedit again and again, stop servers, start server, log in, log out, etc... but when I try to save I can't. Why ????
TypeError
**Odoo Client Error
TypeError: undefined is not an object (evaluating 'field.attrs.name')
http://localhost:8080/web/static/src/js/views/list_view.js:381
If you made a mistake modifying a view in the developer mode, you only have to restart the Odoo service updating the module which generated the views you modified. I guess in your case you have to update the views of the module product. To do that, in console:
python /your-odoo-path/odoo-bin -c /your-config-file-path/.odoo.conf -d your-database-name -u product
It will restore the XML code and remove the developer mode modifications in product module view.

CakePHP 3.2: DebugKit error when opening panel

When I try to open any panel in DebugKit, CakePHP logo just keeps spinning and I can see there is an error in console. This is the error that I get :
Call to undefined method App\Controller\Component\MyComponent::configKey()
Which is strange because this component works totally fine and it doesn't show any errors when I use it in the application.
I figured out what was causing the error. My components name was Cookie and DebugKit plugin uses component with this name as well, so plugin was trying to call function configKey, which of course could not be found in my component.

Enabling Views custom module causes an Ajax HTTP error on Drupal 7

I'm working on a custom module that will describe an external table to the Views module. Inside my module folder I have the required mymodule.views.inc file. However, whenever this file is present and my custom module is enabled Drupal constantly gives Ajax HTTP Error pop ups when I use a site feature that has Ajax (any of the spinning daisies trigger this). The pop up always contains the module code in mymodule.views.inc after it says Ajax Error. The weird thing is every time I load the front page the PHP code in mymodule.views.inc is always displayed on the top of the front page.
I've seen this problem on SO and other sites a lot, but most of the time it can be traced back to an updated jquery.js file or a php.ini setting that will give scripts more time to run. So far neither of those fixes have worked. The only way I can make it go away for now is to either disable my custom module, or rename mymodule.views.inc to something else.
Here's an example of what the message looks like (not verbatim copy, since I can't copy from these alert messages in Chrome).
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /?q=admin/structure/views/view/viewiamtryingtocreate/preview/page/ajax
StatusText: parseerror
ResponseText: /*
* header file to my mymodule.views.inc
* file I wrote
*/
//more php code follows
//lots of unicode characters intermittently show up in my source code
\u003C\/div\u003E\n...
//source code continues with lots of unicode characters, not sure what's at the bottom because the alert box is bigger than my screen and I can't scroll on it
Does anyone else know what could be going on?
This error is caused by drupalforfirebug, disabling drupal for firebug should help. or else this patch should work.
Found it. Syntax error hiding at the top of mymodule.views.inc. There was some weird formatting before the opening PHP tag. Not sure why php --syntax-check mymodule.php didn't catch it (I copied mymodule.views.inc to mymodule.php so that I could run the syntax checker on it).

AJAX not getting invoked through QTP

I am working on QTP 11. I my current project I am trying to automate a website with AJAX fields. I my project I have a text field on which if we try to enter characters then AJAX table appears and we have select a suitable value from the below table. I am able to check the existence of AJAX table.
The problem is to set the text field through QTP, AJAX is not getting invoked. But manually it is working properly. Also, if I first try manually and then I try to enter any through the script, then also it is working properly. It is not possible for me to check each field manually then enter it through script. So can any body tell how AJAX can be invoked on first try without any manual intervention?
I have tried to Set property, Keyboard events like WScript.shell, Mercury.DeviceReplay and AutoIt, however none of them are working. Are there any keyboard input methods that I have missed out?
Can somebody please help me out?
Try performing a WebEdit.Click on the text field in question. If this doesn't work it means that the web page is expecting some events that QTP didn't fire in this case you should change to device replay mode
Setting.WebPackage("ReplayType") = 2
Browser(...).Page(...).WebEdit(...).Click
Setting.WebPackage("ReplayType") = 1
I had the same issue, not recognizing the web list (not selecting the item from list). Using QTP 11.5 loaded with web toolkit 2.0, ASPAjax, DOJO, JQuery add-ins. Still showing the same behavior.
However there is nothing wrong with the code, if I give some wait the code is working OK.

Resources