Closed (cannot reproduce)
Project:
Flickr
Version:
7.x-1.6
Component:
flickr (main module)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2015 at 18:30 UTC
Updated:
24 Feb 2015 at 21:50 UTC
Jump to comment: Most recent
Comments
Comment #1
lolandese commentedHi Peter,
Just like you I thought a conflicting path from another contrib module seems the most likely cause. Besides a cache clear (admin/config/development/performance) you could try to rebuild the registry if you are familiar with Drush. Very unlikely this is the cause though.
On a first time install of the Flickr module, personally I would use the dev version, but that should be unrelated to your issue. A new stable release is upcoming next month.
Some points to provide info about:
The related code is in flickr.module:
It would fail if:
Let us know your findings.
Thanks.
Comment #2
petertoen commentedHi lolandese,
Thanks very much for your quick reply. As you suggested, admin/config/media/flickr is not accessible directly and flickr doesn't show up under admin/config either. My knowledge of Hooks is limitted so I can not realy tell where it fails but my permissions are okay and flickr.admin.inc is accessible.
I have succeded in rebuilding the registry, before and after in- and unistalling the flickr module, but that did not solve my problem, unfortunately.
That leaves us with the possibility of interference of the removed FlickrGallery an FlikrAPI modules. Any other suggestions?
Kind regards,
Peter
Comment #3
lolandese commentedUninstalling a module in D7 should remove all menu paths automatically. Just to be scrupulous, can you run in phpMyAdmin the following query?
It should output something like:
admin/config/media/flickr Flickr [BLOB - 88B] system
admin/config/media/flickr Flickr settings [BLOB - 6B] menu
Comment #4
petertoen commentedHi,
phpMyAdmin returned:
#1146 - Table 'moor05_drup1.menu_links' doesn't exist
It seems I am missing something...
config now shows a warning: Missing argument 1 for flickr_photos_access() in flickr_photos_access() (line 189 of /data/home/moor05/domains/eenkindgezin.nl/public_html/sites/all/modules/flickr/flickr.module).
The content access permissions need to be rebuilt. Rebuild permissions. Is it wise to rebuild permissions?
I don't know too much about PHP. Is it possible for me to create this missing item? Would it solve my problems?
Kind regards,
Peter
Comment #5
lolandese commentedMake a DB backup and rebuild the permissions. The reported missing table menu_links makes part of Drupal core. See http://posulliv.github.io/2012/08/02/drupal-er-diagram/. Do a generic DB search on all tables with admin/config/media/flickr. It should find matches in the tables menu_router and system.
It gives the impression of a corrupted database. You could try a rollback to a saved backup of the DB on your local development environment. It seems strange you only have problems with the Flickr UI with a complete missing DB table. Check if the configuration UI of other modules is missing as well.
Check also if the table prefix in your settings.php is consistent with the prefixes of all tables in the DB.
Attending feedback.
Thanks.
Comment #6
lolandese commentedSee also https://www.drupal.org/files/drupal7-db-schema.png mentioned in https://www.drupal.org/node/2360815.
Comment #7
lolandese commentedI noticed your site has clean URLs disabled (admin/config/search/clean-urls). This should be unrelated but could you try to turn it on to see if it makes a difference?
I tested the dev version with clean URLs disabled. All works as expected.
Comment #8
petertoen commentedHi Lolandese, Thanks for all your help. As it turned out, there wasn't a table missing. I just was not running the query properly. Nevertheless there was something seriously wrong with my DB. Unfortunately my latetes back up also included the error wich occured after in- deinstalling FlickrGallery. In the end we decided to rebuild the site from scratch on an other domain. And that went just fine. Thanks very much for your great Flickr module. Kind regards, Peter
Comment #9
lolandese commentedProbably the most drastic but best solution. Good to know there might be a conflict with the FlickrGallery module. Or is it maybe the library at sites/all/libraries/phpFlickr/phpFlickr.php? That one has to removed manually after uninstall of that module.
Please tell me if removal of that and a cache clear makes a difference? If so, we could add a note in the Troubleshooting guide about possible incompatibility with the phpFlickr.php library.
Thanks.
Comment #10
lolandese commented