I have problem with a Yiibooster sortable table rows. It is not working because of two errors.
The file "http://yii-cms.com/protected/extensions/bootstrap/assets/js/jquery.sortable.gridview.js" is not found by the system (404), although the rest of yiibooster files are working and I did installation according to the instructions.
The path to the "jquery.sortable.gridview.js" is generated by the system, I checked it and that file exists.
I installed Yiiboster by writing:
<?php
// main/config.php
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
'preload'=>array('log', 'bootstrap'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.admin.components',
'application.modules.admin.models.*',
'bootstrap.*',
),
// application components
'bootstrap' => array(
'class' => 'bootstrap.components.Bootstrap',
),
?>
The second error occurs in view file, near the 'afterSortableUpdate' property.
Uncaught TypeError: undefined is not a function
Please give me some advice. Thanks.
This looks like a bug of YiiBooster, try it with the newest version or you may report it here. Please mention your Yii version and YiiBooster version.
The assets need to be properly registered within Yii, so that they are cached in the assets folder. The protected folder is protected and requests to it are blocked.
Related
It was working perfectly with multiple annotation folders in laravel 8.0, forgot the minor version of l5-swagger. Later when I do composer update and darkoline get updated to ^8.3 version. Now, its trying to make documentation(#SchemaRef) out of each file stored inside the folder. I do have following configuration
/*
* Absolute paths to directory containing the swagger annotations are stored.
*/
annotations' => [
base_path('app'),
base_path('Modules'),
]
In my case I do have following error
ErrorException
Skipping unknown \CreateRolesTable
Here CretaetRolesTable is a migration file inside Modules folder, no swagger related annotation exists in CreateRolesTable file and neither this name is being used as #ref.
You should use the anonymous function in CreateRolesTable file.
return new class extends Migration
For more information check the official documentation.(see more)
I need some guidance. I am experiencing an issue where webpack throws an error that it can not find a module . I was trying to add a require statement of a package(included as dependency). I got it working in another project where I don't need webpack. The code looks basically as follows:
context.subscriptions.push(
vscode.commands.registerCommand("vstodo.helloWorld", () => {
vscode.window.showInformationMessage(
"test"
);
const sfdx = require('sfdx-node');
sfdx.auth.web.login({
setdefaultdevhubusername: true,
setalias: 'HubOrg'
})
.then(() => {
// Display confirmation of source push
console.log('Source pushed to scratch org');
});
}));
My webpack config can be found here
I uploaded a simplified version of the repository here Repository
containing all the configuration files for rollup and webpack.
If I leave out the part starting at the require statement everything works again.
Any help on how to tackle this would be much appreciated, thanks
The vscode extension page has a short troubleshooting guide about this: https://code.visualstudio.com/api/working-with-extensions/bundling-extension#webpack-critical-dependencies.
They suggest the following solutions:
Try to make the dependency static so that it can be bundled.
Exclude that dependency via the externals configuration. Also make sure that those JavaScript files aren't excluded from the packaged extension, using a negated glob pattern in .vscodeignore, for example !node_modules/mySpecialModule.
I just upgraded my TYPO3 4.5 to 6.2 lts. After I had to deactivate an extension , more specifically "dam" because of its incompatibility, and I had to deactivate some other dam extensions because they depend on "dam". Now when I try to access the backend , I get some fatal errors related to require once. I just want to reactivate those extensions I just deactivated without Backend , maybe via Install Tool if it's possible. Do you know a trick to achieve this ? is it possible ? if no, how can I go back to the previous version knowing I didn't back it up
You can edit the file PackageStates.php which is inside of the typo3conf folder.
'tt_guest' =>
array (
'state' => 'inactive',
'packagePath' => 'typo3/ext/tt_guest/',
'classesPath' => 'Classes/',
'suggestions' =>
array (
),
),
You can set the state to 'active' or to 'inactive'. You can add additional entries or remove entries from the PHP array which is returned in this file. This will be nearly the same as installing and deinstalling an extension. You only need to do the DB checks in the Install Tool after you have activated an extension. Otherwise the database tables needed by an extension might not be in the needed format.
I have created a module in Odoo 8 following a tutorial. I activated the technical features in Users then I've updated the module list but it doesn't appear in the list.
What should I do ?
Track the following:
checkout __init__.py, __openerp__.py files
weather any server track-back appear or not
find the path of addons module
is your module is at same place or path?
give read/write/execute permission for that module
restart your server
Go to browser, from GUI, Setting => Modules => Update Modules List => and Click on Update button
Now go to Setting => Modules => Local Modules => remove Apps filter on right hand side and type your module name
I hope after do these you will find your module.
After tried everything in #Odedra's answer, It worked when I created a new DB -> restarted the server -> Updated the App List.
I developed an modul for contao 3.0. In my config.php file i wrote this lines:
$GLOBALS['BE_MOD']['content']['modultest'] = array(
'tables' => array('tl_modultest'),
'icon' => 'system/modules/modultest/time_go.png',
);
Now i have the problem, that i want to deinstall the modul. But the menupoint in the backend is still there, even if i deleted the lines above.
Can anybody help me to deactivate or delete deactivated or deinstalled modules from the backend menu ?
Your problem is probably that you did not rebuild the internal cache introduced in Contao 3.0. To do that, go to Maintenance, then under the section Purge select the checkbox labeled Purge the internal cache and click Purge data.