Keyword

Cannot save or edit from frontend NOR backend

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121480 by Jennifer de Spain
Cannot save or edit from frontend NOR backend was created by Jennifer de Spain
Here is the site I built in Joomla 3.1 (recently updated to 3.2): AdeyemiBooks.com


I was doing last minute touches to the site to make sure everything was ready for presenting to my clients and I realized that I couldn't save any new items in the front end. I could create one in the backend, but I cannot unpublish any items from the backend. The edit feature in the frontend is not working as well. I click "Edit Item" when logged in as a user with editing permissions, and I get a page with the rendered version of the post without any options to change any text at all.

The user I am logged in as is part of a group that DOES have permissions to edit and add. Also, the backend issues are happening when logged in as a SuperUser. I am not sure what is going on here. I would think that a SuperUser should not have any issues.

Any help would be great! Thank you!

Jennifer

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #121481 by salim sonmez
Replied by salim sonmez on topic Re: Cannot save or edit from frontend NOR backend
did you edit settings on user group page ?

Attachment not found

Attachments:

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121482 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
Here is a screenshot of the group's permissions. It is the only group:



I also have a custom user group created in the main Joomla user manager. Here is a screenshot of the permissions I gave that user group:



I don't see any configuration that should be causing this. Do you have any ideas?

Thank you so much!

Jennifer

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #121483 by Yiota
Have you assigned your users to this K2 User Group?
Also check if you have enabled the Frontend Editing from the K2 Parameters.

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121484 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
There are three users in that K2 User Group - My two clients and myself. (I am a SuperUser, but we are all part of the Joomla User Group "Adeyemi" that I talked about.).

Front end editing is indeed enabled:

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #121485 by Yiota
Have you tried removing the Super User from the Adeyemi Joomla User Group and check if you can addd/edit items both in backend and frontend?
Check in the backend first.

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121486 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
Actually, I mistyped. My account (SuperUser) is not also in the Joomla User Group "Adeyemi," but we ARE all in the K2 user group "Adeyemi." Sorry! What shall I check now?

Jennifer

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #121487 by Yiota
You do not see the Add/Edit buttons at all when you login in the frontend?

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121488 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
No, I see them in the front end. They just don't work. The edit button pulls up a non-editable pop-up modal, and the "Add New Item" button/links pulls up a modal with input fields, all of which become blank when you click save. There is no evidence of what was just typed in the new item being saved anywhere. Also, I can't change the published status in the backend of any if the items I created previously as a Super User.

Thank you!

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121489 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
Yiota had emailed back to me (because I responded to the subscription email via email instead of via the forum by mistake) and said that she suspects many javascript issues. She told me to try installing the "SVN version."

I did and now I can publish and unpublish from the backend.

However, I still cannot save new items from the front end. :-(

Also, now the edit button pulls up an editable item modal, BUT when I click to save it, the old item is restored and my changes are deleted. :-(

Jennifer

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #121490 by Yiota
Could you check through your Browser's Console if you are getting any errors while in the edit form of the item?

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago - 11 years 4 months ago #121491 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
I checked. There are some errors, but some of them are in the k2 javascript file. Here are screenshots:

Before the edit modal -



During edit -


None of the files that have these errors are files I uploaded. This is what I am using in my index.php:
Log in  or Create an account to join the conversation.

More
11 years 4 months ago #121492 by Odin Mayland
Replied by Odin Mayland on topic Re: Cannot save or edit from frontend NOR backend
I also can not edit items from the frontend.

Has anyone resolved this?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #121493 by Lefteris
@modernmagic

Please view my question to you in order to find the issue here:
getk2.org/community/New-to-K2-Ask-here-first/167218-Members-cant-save-items-from-frontend

@Jennifer de Spain

Your page definitely loads more than one jQuery libraries which is the reason you are getting the jQuery not defined error mostly.
Check through the Network tab of the inspector and see the all .js files that are loading and in what order.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121494 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
Hello! Sorry for the late reply! The last couple weeks were insane!

Here is a screenshot of the network inspector with a list of all the js files.

Before Clicking the Edit Button:


After clicking the Edit Button:


Thank you!

Jennifer

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #121495 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Cannot save or edit from frontend NOR backend
Hello Jeniffer

Can you send me a screenshot of the editing frame's source code?
You can also c/p the script ordering.

jQuery has to load before all other K2 scripts.

It is imporant to view the iframe's scripts since they might differ from the rest of your site.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #121496 by Nikos
Hello Jennifer

kunle wrote: K2 v2.6.2
Php 5.3.10
MySQL 5.5.20
Joomla 2.5.8

I'm currently building a site offline using wampserver so after installing K2 I noticed neither 'Save & Close' nor 'Save & New' buttons worked in back-end.

Then in the JS error console (using firefox browser) I noticed these errors:

Get ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js

X ReferenceError: jQuery is not defined

Get ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js

X TypeError: $K2 is not a function

Since the system is not connected to internet I guessed the 'http' header for 'googleapis' might be the cause so here's what I did that fixed it:

Navagated to K2 Parameter i.e.
Parameters > Layouts & Views > CSS & JavaScript Settings > Backend jQuery & jQuery UI handling

By default it was set to 'Load a remote copy of jQuery & UI' so I switched this to 'Load a local copy of jQuery & UI' then saved the settings. Now the 'Save & Close' and 'Save & New' buttons works fine.

Went back to JS error console (using firefox browser) refreshed the screen and
'X ReferenceError: jQuery is not defined' and
'X TypeError: $K2 is not a function' errors are not shown anymore.

As soon as my site is developed & put on a hosting server I shall switch back to 'Load a remoted copy of jQuery UI to see If the error will return.


Have you tried this solution?

Please Log in or Create an account to join the conversation.

  • Jennifer de Spain
  • Jennifer de Spain's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #121497 by Jennifer de Spain
Replied by Jennifer de Spain on topic Re: Cannot save or edit from frontend NOR backend
Hello,

Thank you for your patience. Holidays are quite demanding!

Here is the script list in the source code on the page with the edit modal:
Log in  or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #121498 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Cannot save or edit from frontend NOR backend
<script src="/components/com_k2/js/k2.js?v2.6.8&amp;sitepath=/" type="text/javascript"></script>

should load after the jQuery script. If not the scripts won't function properly.

If your template does not have a setting for this you can try an extension called jQuery Easy.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.