When I'm on:

Linkit Profiles

/admin/config/content/linkit

And I attempt to click the "Add new profile" tab, the following page can't be found:
/admin/config/content/linkit/add

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon’s picture

Try clear the cache.

deanflory’s picture

I still get a "Page Not Found" 500 error. I also had recently reinstalled all linkit related modules.

anon’s picture

Category: Bug report » Support request

"Page Not Found" 500 error.

Page not found should be 404. But you get 500 internal server error.

Check the log files and see if that can help us solve this.

deanflory’s picture

dblog had nothing new to contribute:

Type page not found
Date Monday, January 19, 2015 - 7:38pm
User XXXXXXXXX
Location http://XXXXXXXXXXX/admin/config/content/linkit/add
Referrer http://XXXXXXXXXX//admin/config/content/linkit
Message 500.shtml
Severity warning
Hostname XXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX
Operations

Here is another error that may or may not be helpful:

Type better statistics
Date Monday, January 19, 2015 - 7:36pm
User XXXXXXXXXXXXX
Location http://XXXXXXXXXXXX/statistics/ajax/accesslog
Referrer http://XXXXXXXXXXXX//admin/config/content/linkit
Message There was an error collecting statistics data:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'node_uid' cannot be null
Severity error
Hostname XXXXXXXXXXXXXXXXXXXX
Operations

I don't know what to tell you other than I don't have this problem with any other modules and there are many, many installed on this one site.

FYI, on another site that has far fewer modules enabled I don't have the issue and can see the Add profile page just fine.

anon’s picture

Well, as you said, there is probably something going on here with some other module.

The 500 error status is bothering me. Can you check the server or php error log?

capogeannis’s picture

I was having the same issue trying to edit an existing LinkIt profile. When I click the edit button, I get an unusable page with mostly plain text, no buttons, etc. Chrome's Developer Tools log shows an error 500. The php error log on that event showed:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 162 bytes) in /.../sites/all/modules/token/token.module on line 989

A quick search lead me to this info noting to try using the Token Tweaks module and setting the depth to 2:
https://www.drupal.org/node/1391706

I installed the Token Tweaks module, set the "Maximum depth limit for the Token UI" to 2, and no more problems.

Unfortunately, I just don't know what the actual issue is. I just know that for now it is fixed for me.

Hope that helps.

gmclelland’s picture

Issue summary: View changes
FileSize
102.6 KB

This is probably because the token tree gets loaded when the profile page is viewed.

It would probably be better to use the token dialog via a link instead of embedding it in the page.

Taken from https://www.drupal.org/documentation/modules/token :

The preferred method for displaying the token browsing UI is via the theme_token_tree_link() function provided by the token module. Using this method will place a link on the page that when clicked will open a modal window displaying a tree like interface for browsing available tokens. This method is preferred because the list of tokens can get quite large and displaying the entire token tree and the JavaScript required to provide the collapsible interface can slow down loading of pages. Since the token tree is likely not used the majority of time we prefer to defer loading until someone clicks the links requesting the list of tokens and then load it via and ajax call.

gmclelland’s picture

Status: Active » Needs review
FileSize
819 bytes

Here is a small patch that might fix the issue. Hope that helps

Status: Needs review » Needs work

The last submitted patch, 8: 2405781-add-token-dialog-link.patch, failed testing.

gmclelland’s picture

I have no idea why it fails the tests. Maybe @anon can chime in here?

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 8: 2405781-add-token-dialog-link.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 8: 2405781-add-token-dialog-link.patch, failed testing.

anon’s picture

Status: Needs work » Fixed

Thanks for the patch gmclelland. Its now commited.

  • anon committed b8cdbe7 on 7.x-3.x authored by gmclelland
    Issue #2405781 by gmclelland: Add new profile page can't be found
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.