ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SafeCracker form not displayed at all

June 22, 2011 5:43am

Subscribe [3]
  • #1 / Jun 22, 2011 5:43am

    Laisvunas

    879 posts

    Hi,

    I have this simple code:

    {exp:safecracker channel="technical" return="technical/test5"}
    
    Title
    
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
    
    URL Title
    
    <input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>
    
    Pictures
    {field:matrix}
    
    <input type="submit" name="submit" value="Submit" />
    
    {/exp:safecracker}

    What might be the reason that this code outputs nothing except javascript?

    Safecracker v.2.0 is installed, the channel “technical” exists, the user is logged-in superadmin, EE is v2.1.3.

    UPDATE: Maybe this issue has something to do with moving site from one host to another. On the old host Safecracker works as expected, but on the new host this issue happens. I tried to uninstall and install again Safecracker on the new host, but it did not help. Then I uninstalled all other add-ons, but it did not help either.

  • #2 / Jun 22, 2011 2:50pm

    lebisol

    2234 posts

    Member group chosen to have access to add entry to this channel? How about non-superadmin accounts, can they see the form?
    Also add “error_handling=“inline” parameter to see if there are any errors thrown. The form itself looks fine and shows up so I would look towards the settings.

  • #3 / Jun 22, 2011 3:13pm

    Laisvunas

    879 posts

    Hi Lebisol,

    There is member group “contributors” who have the right post in the channel in question, but when logged in they also do not see the form, only javascript is being outputted for them.

    I added

    error_handling="inline"

    to exp:safecracker tag, but no errors were outputted.

    It seems that this issue might something to do with moving from one domain to another. One guy in older thread has encountered something similar when moved EE2 installation from localhost to remote server (that thread not helped me to solve thiis issue).

  • #4 / Jun 22, 2011 3:31pm

    lebisol

    2234 posts

    Hmm an odd one, how about disable/enable extensions all together then check the ‘exp_extensions’ table to see if the values are there.

  • #5 / Jun 22, 2011 3:57pm

    Laisvunas

    879 posts

    Hi Lebisol,

    Thanks for your suggestions.

    I disabled extensions, deleted all rows in exp_extensions table that were left, uninstalled Safecracker, then enabled extensions and installed Safecracker. Unfortunately, that did not help - still exp:safecracker tag outputs only javascript.

  • #6 / Jun 22, 2011 4:27pm

    lebisol

    2234 posts

    Until the staff here comes up with better suggestions…
    Any conditions in the template that might conflict with tags? Hard to tell without looking under the hood of install. I would go with basics at this point, triple check the channel permissions and then re-download/upload the safecracker related files. How about creating a new channel and trying to use the safecracker on it just to introduce a change….
    Hang in there, it could be something really silly that is missed.

  • #7 / Jun 22, 2011 4:51pm

    Laisvunas

    879 posts

    Thanks for your suggestions.

    I try to go basics - there is no tag in template except exp:safecracker and no conditionals inside it or outside.

    I also tried to create a new channel, delete and reupload Safecracker’s files - nothing helped.

    Will wait what TSS will say.

    Thank you again.

  • #8 / Jun 23, 2011 1:25am

    John Henry Donovan

    12339 posts

    Hi Laisvunas,

    Can you try a more simplified form please without the custom field. That is the only thing I can think of that you haven’t tried yet before we take a deeper look

    {exp:safecracker channel="technical" return="technical/test5"}
    
    Title
    
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
    
    URL Title
    
    <input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>
    
    <input type="submit" name="submit" value="Submit" />
    
    {/exp:safecracker}

    Also seeing as it is a new host can you give our Server Wizard a run please

    Also note EE2.2 was released yesterday

  • #9 / Jun 23, 2011 1:06pm

    Laisvunas

    879 posts

    Hi Henry,

    Thanks for suggestions.

    I cannot explain what’s happened, but Safecracker just began to work correctly in the morning. It seems that only thing required was for me to sleep enough.

  • #10 / Jun 23, 2011 1:10pm

    lebisol

    2234 posts

    😊
    At least it is working and you can move on.

  • #11 / Jun 24, 2011 8:15am

    John Henry Donovan

    12339 posts

    Thanks for coming back to us. Feel free as always to start a new thread if you have any more questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases