Magento Error when Accessing User Roles Section - php

I have a Magento site in which there are about 20-25 extensions installed, among which 7 are commercial, which means that those 7 extensions are fully encrypted. Also none of these extensions use the User Roles & Permissions section, in the Admin area.
Now, a few days back, I got into a silly problem which is really taking a toll on me. I wanted to create a new User Role (from System > Permissions > Roles), where I already have 14 other Roles set. Now whenever I click the "Add New Role" button or try to edit any of the existing roles, I get the following error:-
<my-magento-site-domain>: This script is locked to another domain.
What I'm pretty sure is that this error is somewhere related to the use of extensions, but I don't know & can't understand where it is coming from. I have tried to solve this error by disabling all the extensions & clearing the full cache & deleting all the folders in the "/var/" folder, but nothing has happened.
Magento version: 1.3.2.3
I know that Magento upgradation is necessary, but can't do so due to those extensions.
Can somebody please help me in this matter? Any help is greatly appreciated.

When you say that you disabled all the extensions, how did you perform that step? I've found that the System>Config>Advanced status values are often ignored by extensions, as are various other attempts to disable. The only way that you can be certain of disabling the extension (IMHO) is to remove their .xml files from etc/modules.
It sounds like the error that you are getting is a Javascript generated error. You could grep the /js folder to find that error text to see if you can track down the source of the error. Likewise, use Firebug (or Chrome Inspector, choose your browser poison) to debug the JS error. Post what you find here...
One more option is to manually create the new role using phpmyadmin. By inspecting the admin_role table, you'll work out the syntax fairly quickly (e.g. tree_level ="1", role_type = "G". Then see if you can edit the new role through the UI.
Cheers,
JD

You can try with clean magento install without commercial extensions. Add a role and see if this happens. Then add commercial extensions one by one and test when this error occurs.
I assume that you have already searched all magento files (at least non encrypted ones) to see if there is any containing your error message...

Related

Not able to edit contents in magento from backend after a installing modules

I have site build in Magento 1.7
I have installed a new shipping module Bpost through magento connect. When I installed that, it raised the error that, it is already existing plugin. After that when I accessed the site, the maintenance flag was active.
When I removed the maintenance flag and checked the site, everything seems to be working fine in the front-end. But I am not able to add or edit contents from the back-end. Click is not detecting in the existing lists of contents and when I click on add new (for cms block, page etc) the new section appears, but no action is performed while clicking save.
Why is this happening ? How can I resolve this issue ?
I recreated the site with my backup files to a new location. After that removed all the existing plugins and installed all the plugins. At that time all seems to be working fine. After that I have edited the header.phtml file and added some additional script.
The script was for getting contents and displaying it using script. After that when I run the site and went to backend everything again went to non editable mode. Now I am not able to click or edit any cms contents in the site of static blocks, products etc.
Why is this happening ? How can I resolve this issue ?
In my opinion, the problem comes from a javascript with an error that blocks the rest of the javascript. All buttons use javascript to fire events. With firebug or something similar, check which error is raised in the admin javascript and try to fix it. Using the solution that Niraj Jani gave about disabling module is a good way to check if it is really the module that blocks the javascript. If the problem is linked with prototype, it can come from the definition of blocks in php, the design template or layout...
Have you tried after claering cache?
Take Look at below link and its answer,
In Magento after installing extension Admin panel in unable to load
Delete (or move to another folder) files in /var/www/var/cache
Delete (or move to another folder) files in /tmp
From a shell, run
/var/www/shell$ php indexer.php --reindexall
You've just manually cleared your caches and re indexed your data. See if your system comes back to life.

Magento module controller won't update

I did some tweaking on a module a guy used for a website he was working on and now I was requested to change one line of code in the controller of that module. The problem: it doens't matter what I do, my changes won't get loaded and Magento uses the old controller code. How do I fix this?
What I tried:
cache management (refreshed it, flushed it, cleared it and disabled it. I have done all of it in any possible order)
checked if I was in the right place to begin with (edited etc/config.xml and Block/view.php these changes did show)
edited etc/config.xml and changed the version number
System=>Configuration=>Advanced=>Advanced and disabled/enabled the module to check if it would reload it
just to clearify the cache management part:
Configuration
Layouts
Blocks HTML output
Translations
Collections Data
EAV types and attributes
Web Services Configuration
Web Services Configuration
are the only rows I have here.
installed Magento version:
Magento ver. 1.8.1.0
If there is anything else you may need to solve this problem please let me know!
I have allready wasted a day on this problem.
Maybe compilation mode is enabled.
Go to System -> Tools -> Compilation and if compilation is enabled, click Run Compilation Proces.
I fixed my problem with a workaround, it seemed that I was able to edit the model.
The code in the controller was never called because he put the logic that actually was called in the Model.

Magento 1.7.0.2 - Image type and information need to be specified for each store view

I have Magento 1.7.0.2 installed and running. When I go to add a new product I am getting the "Image type and information need to be specified for each store view."
Steps I Have Tried:
1) Navigate to System -> Manage stores
2) Click one each of your store views, and choose “disable”
3) Save
4) Clear all cache
5) re-enable your store view
6) clear cache again
Did that about 6 times. I also tried adding a store view then doing all those steps again and that didn't work, so I deleted the store view I created since this site only needs one store view.
Other things I tried.
1) Disable all 3rd Party Extensions
2) Go to Stock Theme
3) Renaming the .htaccess in the media folder.
Does anyone have other suggestions on what to try?
EDIT: The Browse and Upload buttons weren't showing up as well, and apparently it had nothing to do with the message I am getting. After Nick Darley's help I was able to get the buttons to appear but the message is still there, which I can live with.
I had the same issue in Magento CE 1.9 and all other answers did not work. I ended up going to skin/adminhtml/default/default/media and changing the permissions for uploader.swf and that worked for me. Also, make sure you have the latest version of Flash installed for your browser.
So after looking into the issues with the provided credentials I see this error.
I also looked into your configuration and see that you are running magento in a sub-directory. I see you aren't having any other issues from the looks of it so I would just suggest a quick fix.
Create a new folder in the root called skin and then upload a copy of the adminhtml from your server. After that, that should resolve your issue with it not being able to find the file.
"Image type and information need to be specified for each store view."
For those who are getting this error please try change flash setting or run in different browser. It works for me. Thanks
Image type and information need to be specified for each store view:
Go to File structure root/media/ dhl
Cut or delete the “dhl” folder from there.
Clear cache from Admin Panel and now do upload the images
Hope, Its working good.
According to the Magento user manual, before adding images to the Magento Gallery, one must select the store view which it shows on the top left as a dropdown. That would make perfect sense.
I am running Magento with shared hosting on GoDaddy and I do not see a dropdown for that view although I have found that dropdown in another place. Are you using Magento Shared Hosting on GoDaddy? According to http://www.submitdigital.com/questions/magento-1-7-image-upload-issues-help-image-type-and-information-need-to-be-specified-for-each-store-view/ it may be an issue specific to the way it is being installed or hosted.
Check if your internet firewall is not blocking the execution of audio and video files, because it needs to execute the files bellow:
/skin/adminhtml/default/default/media/flex.swf
/skin/adminhtml/default/default/media/uploader.swf
/skin/adminhtml/default/default/media/uploaderSingleswf
Hope it helps.

Download button works when logged in but not logged out

Joomla version = 2.5.6
PHP version = 5.3
We are using the DButton module as a download button inside an article and using
{loadposition xxx} to display it.
About 5 days ago, the button worked fine but since then, something has happened and now it only works if a user is logged in. If they aren't, the button just refreshes the page. (but does show).
Also during testing we unpublished the module - and it took over 5-10 minutes for the module to 'vanish' when not logged in. When logged in it 'vanishes' immediately and indeed when logging back out it reappeared despite being unpublished!
None of the module files have been edited, nor have we changed anything/installed any new extensions on the website in the last 2 weeks or so.
We used JDump and found no errors within the module, therefore am truly unsure what the problem could be.
We also got in contact with the developers and they said they had never come across or heard of a problem like this before and that they would take a look, however we have not heard from them since.
Reinstalling the module didn't help either.
Has anyone ever come across anything like this before or have an idea or solution?
Caveat: I never used DButton but looks quite handy.
Are you using custom levels? What are they set to? It sounds like something to do with permissions set to registered only instead of public somewhere.
Try disabling all other extensions just in case.
Are you linking to a URL or a file on your server?
Maybe take a backup with Akeeba and install a local version to see if it does the same thing. Can then try replacing your template with a core one as well as uninstalling everything except for DButton.

ezPublish Translation mixup

I'm trying to create a development mirror site of an ezPublish site so I can stage changes without messing up the main site. I copied the database and the filesystem and changed the ini files to point at the new database, but when I loaded the page I found that none of my objects were being loaded. So I break out the debug bar, and I find that for some reason the language_mask that is being used is incorrect...the bitfield is set to 4 while the mask being used in the query to load the page is 3.
So I poke around the ini files and I see a setting called SiteLanguageList[] which seems to set up 'backup langauges'. I found that If I set SiteLanguageList[] to:
SiteLanguageList[]=eng-US
SiteLanguageList[]=eng-GB
and my site started showing up. Yay!
However, all is not well. When I actually try to EDIT the page in the admin, every entry shows up blank. What makes things doubly weird is that it shows up in the admin as long as I'm merely looking at it. And then there's this weird discrepancy, where depending on where I'm looking in the admin, it either says that the page is eng-US or eng-GB depending on where I'm looking on the same page.
Seriously, what the heck is going on here?. If I click the edit button, nothing shows up.
Same question on ez Publish community
Are you sure that the database
was imported correctly? Please check
the database using "Setup - Upgrade
check" utilites
Clear all caches
manually (run "php
bin/php/ezcache.php --clear-all"
from ez root directory)
Check the
ez error log
(/var/log/error.log)
Check the permissions for the ez
folders (cache, settings, etc.)

Categories