Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I seem to be missing the import tab. Any idea of conflicts with other modules? Or is anyone else even having this issue?
Comment | File | Size | Author |
---|---|---|---|
#6 | addPHPdependency-1683714-6.patch | 351 bytes | mrP |
#1 | not-import.png | 36.41 KB | Kylie Morgan |
Comments
Comment #1
Kylie Morgan CreditAttribution: Kylie Morgan commentedSee screen capture.
Comment #2
nflowers1228 CreditAttribution: nflowers1228 commentedI'm having the same problem. I don't see the import tab.
Comment #3
swentel CreditAttribution: swentel commentedYou're probably logged in as a user which doesn't have the following permission: 'use PHP for settings' which comes from the PHP module. This was changed during the 1.0 to 1.1 release as a security hardening to prevent users to insert malicious PHP code.
Comment #4
amanire CreditAttribution: amanire commentedMaybe there should be a dependency on the PHP Filter module?
Comment #5
mrP CreditAttribution: mrP commentedI have to agree with amanire on this one. If not for this issue report, I would have never know about this dependency.
Comment #6
mrP CreditAttribution: mrP commentedsimple patch attached to add php dependency
Comment #7
mrvanmeter CreditAttribution: mrvanmeter commentedSame issue. No import, only export.
I am a developer with all possible PHP permissions.
If there is a dependency on PHP, there is only a release history for dev for 8.x http://drupal.org/project/php
Am I missing something? Anyone else having this issue?
Comment #8
mrP CreditAttribution: mrP commented@mrvanmeter -- There is a module included with core called PHP Filter. Go to admin/modules and enable PHP Filter (Allows embedded PHP code/snippets to be evaluated).
Comment #9
mrP CreditAttribution: mrP commentedComment #10
Anonymous (not verified) CreditAttribution: Anonymous commented@mrvanmeter for drupal 8 the Export and import functionality is in the CMI (configuration management).
Comment #10.0
Anonymous (not verified) CreditAttribution: Anonymous commentedRemoved externally linked screen capture.
Comment #11
colanWe need to get this into version 2 first.
Comment #12
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedI don't agree with making PHP filter a requirement. It is a potential security issue to have it enabled on a site and from what I can tell the code would still work without the filter enabled. Rather I suggest making your own permission for this module and adding 'restrict access' to the permission details. Perhaps even setting 'warning' too if you really feel it is warranted in this situation.
Comment #13
JeebsUK CreditAttribution: JeebsUK commentedThis isn't the kind of module I'd leave enabled on a site. I'd turn it on, perform the import and turn it off again - so I think having PHP Filter as a dependency is OK, it's up to the site administrator / owner to keep the relevant modules turned on / off when they are needed.
Comment #14
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedBut why make it a requirement if it isn't needed to make the module work? The module will work without.
JeebsUK, your comment does not address the issue at hand, the tab is missing if a user does not have the 'use PHP for settings' permission, but the 'use PHP for settings' permission is provided by the PHP Filter module and some users may not have it enabled. Lastly the code works fine without this permission enabled for a given account. IMO, it would be better to just implement a hook_permission() and add a new permission that could be assigned to roles to have more security here ('use bundle_copy PHP import' or something similar) rather than utilizing an existing permission from another module.
Comment #15
mrP CreditAttribution: mrP commented@nicholas.alipaz -- you hit the nail on the head. i hadn't dug in or realized that it was a missing permission problem rather than some other php module dependency. if we can add a new permission to bundle_copy, than that is definitely the way to go.
Comment #16
dragon658 CreditAttribution: dragon658 commentedSubscribe.
I also didn't have import tab on "Content Types" page until I enabled php fileter module and added "Php filter" permission to "Developer" role.
You must describe this in doc on main page.
It is very VERY VERY frustrating thing.
I just spent 1.30 hours to solve it.
I am very angry at the moment. :)
Comment #17
colan@dragon658: It's no longer necessary to subscribe by writing a comment. Simply click on the Follow button.
Comment #18
dragon658 CreditAttribution: dragon658 commentedDidn't know it. Thank you.
Comment #19
daffodilsoftware CreditAttribution: daffodilsoftware commentedHi
I have checked the above issue but not able to reproduce it. So for now i am closed this issue. if anyone will face this issue again then reopen this issue.
Comment #20
deepav CreditAttribution: deepav commentedI have also faced this same problem. #4 worked for me.