mdmsoft/yii2-admin module not working in basic templet - yii2

I am new with yii n am trying to include an admin module "mdmsoft/yii2-admin" in my app i have followed the readme instructions from https://github.com/mdmsoft/yii2-admin/tree/master/#rbac-manager-for-yii-2,there is no error in installation but when i try to open the admin page by mydomain/web.php/admin" its showing "Not Found". I have also checked the root permission of all the files and folders in the application and it is fine.

mydomain/web.php/admin should be mydomain/web/admin.

Related

Page not found with POST request in the django's admin when i click any of the save button in Production environment

At first, I tried installing MySQLclient via the terminal in a shared hosting platform only to get GCC permission denied, I contacted the admin pertaining the domain but to no assistance. I decided to use SQLite instead, everything worked fine, to my surprise no migrations were requested. Now when I wanted to add a product in the django admin page, when I click the save button I get an error that page not found with request Post. Everything works fine in development also when i request the same page while online in the admins page it loads fine. Kindly help
Here is the gcc permission denied
Got this error when i tried pip install mysqlclient in cpanel terminal
Here is the the product page at the admin
This is the product page while at the admin page
Here is the error when i click any of the save buttons
This the error i get when i try to save the product by clicking any of the save buttons
I escaped gcc permission denied by installing django 2.1 and followed this Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?' worked for me but now the problem is when i add a product with an imagefield i get page not found with request post

Clasp Could not read API credentials. Are you logged in globally?

I'm logging in with clasp login --creds <file> which produces a local .clasprc.json file.
It says that I am logged in, but when I run another command I get:
Could not read API credentials. Are you logged in globally?
Any thoughts on why its not looking at my local clasprc file first?
Currently using version clasp v. 2.2.0
I ran into the same problem on Windows 10 and found that you need to login both globally and locally to use clasp run. There should be a .clasprc.json file in both your project folder and user folder.
I think I have finally found the solution for the same problem
Follow along with the comments from this github issue
Add the "oauthScopes" field to your local code and push it to your app
If you can't push, then copy-paste it to manifest file in the browser
Then you have to publish the app, and there were few things I've done, not sure which one helped. In the app in browser:
add the app version in File->Manage Versions
Publish -> Deploy as API executable
try to login with clasp and creds.json file
try to run something clasp run testRun
it may show the error that you're missing some oauth permissions, but it will list which ones, and you can add them
In my case, one weird thing that also helped was to enable some Google API
so in the app in browser: Resources -> Advanced Google Services -> enable some API
then try to do clasp run
if it works, you can disable the API that you have enabled previously.
Hope that helps

an error occurred while processing this directive in justhost

when i upload my website to my hosting Justhost it not working and it show only error like this
an error occurred while processing this directive
Please help me to correct this error
try the steps that follow:
Go to cPanel
Open File Manager from Files section
Navigate to domain folder
Check "Perms" column on far right hand side
Files should be set to: 0644 (this is the UNIX file permissions)
Folders should be set to: 0755
This will change your file permissions to their proper settings for the justhost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell justhost to parse these files as PHP. Do this using Apache Handlers in cPanel:

Yii2 Advanced application Deployment Steps?

How to deploy Yii2 advanced application on server?
I've try steps given in these link but still by frontend/web/index.php show blank page?
I'm new in Yii2. Please give the steps for deployment.
If you found the application is not deployed. then check or search for error_log file which is show you the exact error in which file.
Below is the path where error_log file will be find:
in your root application
in frontend/web/
in backend/web/

Unable to upload widget to Wirecloud instances in private server

We have downloaded and installed a running instance of Wirecloud in our company server following the steps at:
https://conwet.fi.upm.es/wirecloud/install
We created the instance using the --quick-start command to try the instance, and ran wirecloud using the Django internal web server with the following command:
$ python manage.py runserver 0.0.0.0:8080 --insecure
We are able to enter the instance, and move around the enviroment, but we have encountered a problem when we try to upload a widget to our local workspace. After I search for the widget in my computer (previously downloaded from the Fi-lab marketplace), we get the next message:
Error adding packaged resource: Internal Server Error.
We also tried to download the zip file of the widget from github, unzip it and recompress it as a wgt file (compress as a zip but changing the extension to .wgt) and we get the same answer from our wirecloud instance; but if we try to upload the same package to the instance in fi-lab, it uploads successfully.
We don't know if it's because of the quick-start installation we made or if we have to modify something from our widget files in order to be able to upload it to our local instance.
Solved
The problem was in the config.xml file: the name of the attributes and the structure of the widgets unable to upload were different from the template of the config.xml file posted at the users guide.
After changing it to follow the structure of the template it works fine.
My widget example was the NGSI Updater. The thing is that it uploads perfectly in the instance at FiLab, even though the config.xml file had a different structure from the one of the template; but it encounters an error when uploading it to the Wirecloud local instance at my server.