I've just set up Drupad with my D7 personal site. I can connect correctly, browse around, etc, and it all appears to work fine. However, when I create content it says "saved" in the app but the new content is nowhere to be found on the site, not are there any error logs. Any ideas? Thanks

Comments

jjstefanko’s picture

I am having the same issue with not much success for a solution. I did find one item that was interesting in the content_forms.inc. At the top of the file there are references to ?q=drupad/content-forms/node?q=drupad/content-forms/ and some other links. When I put those links into my browser, which is signed in as administrator with full permissions, I get an Access Denied Error.

Also, from looking through the module code I do not see a clear section for updating the database if the content is edited/created. I may be missing this!! I am not the creator of this great system. All credit to the creator jchatard . I am just trying to help.

jchatard’s picture

If you want to debug from your browser, you need to set your browser agent to Drupad. This is a security measure.

About the saving part, Drupad does only send an HTTP post request with the same form as you would send via the regular web interface. So the Drupal form API catches it and processes it!

Jeremy

jchatard’s picture

@jjstefanko Can you see something in the Drupal logs? When you try to save a node?

jjstefanko’s picture

All I get is a saved message from the app. Then the page reloads and shows me a blank form as if I were going to add something new or if I am editing a page reloads the form and shows the basic page and my edits are not there. Nothing is showing up in the logs in reference to the editing or creation of items.

jsheller’s picture

I am having the same issue since a few month. I tested a lot to find out the problem and can tell you this:

- When I am logging in, Drupal notice that I am here and in the log it says "Session opend for xxx@xxx.de".
- When I try to save or edit a node, the form validation of the content type is not checking the fields and the app every time says "Saved!"
- When I try to delete a node, the deletion is sucessful but no notice is showing in the log! It is not visible that the node was deleted and with which account.

I am running a sandbox system with a earlier version of my website. The drupad-Version in this instance is the same, but Drupad is working fine in this installation! I only updated a few other modules and the drupal core (sandbox 7.14, system with problem 7.19) between the sandbox and the problem-system status.

I hope that helps you a little with the problem analysis?

Thank you!

jchatard’s picture

Hi guys,

I'm out for 1 or 2 weeks for holidays. I've added a reminder to get back to you, as soon as I come back, but feel free to remind me to get back to you on this.

Thanks,
Jérémy

jsheller’s picture

Hi Jérémy,

here comes the reminder you asked for ;).
Is there something new about this problem?

Thank you very much in advance,
Jacqueline

jchatard’s picture

Hi Jacqueline,

Would you be able to send me a copy of the "non-working" Drupal instance (source + db dump) so that I can debug this on my local computer?

Thanks,
Jérémy

jsheller’s picture

Hi Jérémy,

unfortunately I cannot send you a dumb of that instance because its a company website with lots of personal information from employees and customers. :( :( :(. I am really sorry about that. The data protection guidelines of the company are very strict about that.

Does a list with all moduls and its versions may help you?
When I am on holiday in the next weeks (did not know when especially yet), maybe I get time to set up a new drupal instance and try to reconstruct the error.

Do you have some hint what and how I can test to help you narrow down the problem? Or are there some error logs I did not know which would help you?

Thank you very much and sorry again,
Jacqueline

jjstefanko’s picture

I could send you a copy of my db and source(eliminating the sql user and pass info) or provide you with a temp admin login to one of the sites. Please let me know. I am running a Drupal multi site install with symbolic links and separate databases.

Joe

jchatard’s picture

If you can send me a clean dump that would be great because I'll then have your exact config.

Cheers,
Jeremy

jchatard’s picture

If you can send me a clean dump that would be great because I'll then have your exact config.

Cheers,
Jeremy

jjstefanko’s picture

Jeremy ,
So you would like the following:
Dump of Drupal File System
and a dump of the MySQL file

Is there anything else?

Joe

jchatard’s picture

No, that should be fine.

Oh maybe if you could set a simple password for the user 1, like "admin" before creating the dump that would be awesome.

Cheers,

jjstefanko’s picture

ok. how could i get this to you? I am just waiting for my backup to complete.

jchatard’s picture

You could put on Dropbox and send me the shared link for example :-)

jjstefanko’s picture

Im working on it!

jjstefanko’s picture

I sent you a contact through your drupal.org profile page.

Joe

jchatard’s picture

Yep, just saw that!

jjstefanko’s picture

If you have trouble getting that to work. I will allow you to use my server through an account. I have a complicated Drupal system. I have several sites running off a single file system.

jchatard’s picture

Sadly... or not, it's working perfectly on my local machine...

jjstefanko’s picture

even the drupad app?

Never mind you mean the file system i gave you is working..

jchatard’s picture

Yep, can you read mov files (created on OS X)?

jjstefanko’s picture

yes i can - I am on a mac

jchatard’s picture

Just sent you a link to screencast, pure quality sorry, but just to show you.

Does this use case reflect something that didn't work for you?

jjstefanko’s picture

could this be because i am using cloud flare?

jchatard’s picture

No idea!

But that could make sense. Because if Cloud flare caches Drupad responses, then it *could* tell the iOS app that everything went fine, even though Drupal hasn't been hit.

But I'm only guessing...

jjstefanko’s picture

I am running a quick test on one of my sites that is non cloud flare. It would be surprising though because I am only using cloud flare for security..but I am using the boost module.

jjstefanko’s picture

On my non cloudflare website there was still the problem. Even with boost disabled I still am having this problem.

jchatard’s picture

Is this an instance that I can access the source code and make some debugging tests?

jjstefanko’s picture

the source code of?

jchatard’s picture

Drupal

jjstefanko’s picture

I cannot give you direct access but I can grant you indirect access via team viewer (its free and like log me in)

jchatard’s picture

I never used this, so don't know how to works.

jjstefanko’s picture

ok no problem... is there another way do this.... also my content page says updated also when I use the app the changes just do not save

jchatard’s picture

The only way I can help you, is that I try to find what's going on, on the server where it's not working and make some tests, adding debug statement, etc.

So I need something I can break without disturbing users visiting the website, and with no fear to loose any data.

jjstefanko’s picture

I think i figured it out. If you click submit changes with the keyboard still up they do not save. When I click dismiss on the keyboard the changes save

jchatard’s picture

Can you confirm that this solves every use case previously not working?

jjstefanko’s picture

I am trying it on all 4 sites on my iphone 5

jjstefanko’s picture

Conditions of websites
Testing done on 4 sites all with boost, 3 with cloudflare.
Using a multi site install

Test Done On:
ATT iPhone 5 with iOS 7 beta 4 on an LTE Data Network:

Results:
If you are forcing www(cloudflare requires it in my case with Dreamhost) in the url please make sure that you input the whole url into the Drupad Sites Page. Example:

Correct:
Some Site
http://www.somesite.com

Incorrect:
Some Site
http://somesite.com

If you are not forcing www in the url and you site can be accessed from both www.somesite.com and somesite.com then an example of the sites page in the Drupad app is:

Some Site
http://www.somesite.com

--or--

Some Site
http://somesite.com

Be sure to click the dismiss button on the keyboard when done and before submitting changes.

Creating and editing of basic pages work.

What I am still testing:
Ubercart creating and editing
So far the ubercart product creating does not work. There are not enough fields in the app for iOS devices. I get the error SKU needed and Price Needed.
So far basic ubercart product editing (edit description and upload photos works as long as any keyboard is dismissed before submitting changes)

jjstefanko’s picture

Confirmed to my testing. I will double check tomorrow.

jchatard’s picture

Ok, thanks for the debugging!

jsheller’s picture

Hi Jérémy and Joe,

I tried to test the same things you tested:

I think i figured it out. If you click submit changes with the keyboard still up they do not save. When I click dismiss on the keyboard the changes save

Theres no change on my problem. My content still didn't save with this method. (The form validation did not work, too.)
The website I am testing is running with https. Does this maybe cause problems? My working instance does not run with https but only with http.

Let me know when there is a test case I could try to help you.

Thank you!
Jacqueline

jjstefanko’s picture

Jacqueline,
In the Drupad Application are you using https://www.yourdomain.com in the settings for your website? What .htaccess code are you using? Are you using a CDN network and or extremely aggressive caching? I know with aggressive caching even editing pages on a computer don't work.

Things to try:
The two different code Snippets found on http://drupad.com/install.html. In the first code snippet try with out the L in the end:

# -- CODE SNIPPET #1 --
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# -- CODE SNIPPET #1 --

Then in the settings of your website on the Drupad Application try different website urls :

https://www.yourdomain.com
https://www.yourdomain.com/
https://yourdomain.com/
https:://yourdomain.com

jchatard’s picture

@Jacqueline,

Using https shouldn't be an issue.

Is your website accessible so that I can do some tests, debugging without disturbing any of your users?

Thanks,
Jérémy

jsheller’s picture

Hello together,

both the domain writing versions and the snippet (without L) in the .htaccess didn't work for my problem. No form validation, no content saving. Should I try the snippet including the L? (Actually I do not know for what the L stands, so sorry if this is a silly question.)

I will talk to our administrators to grant access for you Jéremy. But I guess this will take a little time :(.
We are currently in holiday season and it's not possible to bring all the needed people together before 19th/20th of august.

Today and tomorrow I will do further tests and if I find out something new I let you know.

Thanks for you help!
Jacqueline

jchatard’s picture

Hi Jacqueline,

About the L, I have to admit that I'm not sure anymore if it is or not that useful. It seems that most people haven't any issue using it. So I would advise you to test with or without. Theses snippets have been added to the documentation for server configurations that some people may have, but on my sites, I've never needed them.

When you can grant me access, just reach me and I'll have a look.

Just be aware that I'm currently on an around the world trip, so I might not be reachable from time to time depending on where I am on this planet :-p

Cheers

jchatard’s picture

Hmm, you should defenitly try without the L. Symfony users have come around the same kind of problem. They use the same workaround, but don't put the L.

Reference: https://github.com/symfony/symfony/commit/87bb3661fc8a17160815906c58dabb...

But from my understanding, this might not be your issue, as it seems that the rest of the application is working as expected.

So as far as I understand, it would seem that only POST requests don't work. Don't know if this has something to do with the CGI/Apache autorization handling.

jchatard’s picture

After looking at Drupal 8 .htaccess they are using the same kind of snippet but the syntax is quite different:

RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

To try as well!

jsheller’s picture

Hi all,

I am sorry, I couln't test it today because the system is currently in a very high use. I will be in holday from today on and will get back to you in a little more than two weeks.

Thank you very much for your help!
Jacqueline

anydigital’s picture

Still reproducing for me.

Clicking on the "Dismiss" button when editing body field helps (thanks #comment-7703377).

Any chance to fix this strange issue?