Drupal not updating data for content page - drupal

I am using Drupal 6.19 to build a simple website with its own theme and layout. I also added and updated content regularly till I ran into a typical problem yesterday. There was a node-24 with a url alias of 'projects/india/current'. It is a content of type 'page'. As soon as I updated the content for this node, the data was not saved but it went to the url http://www.example.com/node/24/edit?destination=admin/content/node and the home page got displayed instead of normal update successful message. When I click on the back button I again came to the edit page options. It seems the data is not getting saved. I erased the body part of the content entirely and just typed 'test' and pressed the save button and to my surprise it updated successfully. I am not sure whats happening behind the hoods. I am using input format as PHP code. Any help would be highly appreciated.
Thanks

just check the node the data might have been saved. due to load on server at times this happens check your logs if you are getting ERROR 500 at times

Related

Losing data after deployment - clarification

I touched upon this in a question I submitted yesterday. I am not sure I clarified well what my issue is in that post, so, just to make it less confusing I thought I'd just create a new post.
This is what's happening.
If I go into Preview mode and create a new record and then refresh my browser, the record remains (as you can see I now have many records in Preview). But I realize the Preview is unique to my login.
[Inline image 2][1]
But when I do a deployment and go to the deployment url:
[Inline image 3][2]
And then I create and submit a new record, it works correctly and displays in my list view:
[Inline image 4][3]
But then, if I just stay on the same window tab and refresh my browser, my document disappears.
This could be a permissions problem. Are you using the same account when using the deployed version as when you tested with the Preview mode? If not, the account you used for the deployed version may not have permission to view the record you just entered. When you enter the new record it will appear on the form but when you refresh your browser it does not appear.

Drupal: cannot add fields to a View after site move

I have already received some help on this from other posts in StackOverflow, but there is a specific refinement that does not seem to be addressed.
I cloned a Drupal Site.
Everything seemed to be working just fine as I worked on CSS per client request.
Then along came a client request that involved changes to the fields in a View. No custom field was available in the dialog box - only the default fields. An error showed up at the top of the page: Notice: unserialize(): Error at offset 421 of 16415 bytes in views_db_object->load_row() (line 2251 of /var/www/sitename/html/sites/all/modules/views/includes/view.inc).
There had been a change that affected Content Types, but I did not realize that one bad View would cause all of them to fail.
It was suggested that I look at another StackOverflow question about this error. One reply said to remove potentially problem Views. When I did that, the error went away.
I can now make new Views and have a list of all the available fields, but once I save the View, it goes back to only showing the default fields. There is something else wrong, but I don't know what it is.
Drupal is always a new puzzle to solve!

Woocommerce product pages blank?

I am having a strange problem where my product pages are blank most of the time in woocommerce. If you click a product, sometimes it may or may not load, and if it doesn't, you have to refresh it multiple times until the page finally shows the content. I noticed this only happens to users who are not logged into wp-admin.
I had W3 caching plugin but I deactivated and deleted and the problem still persists? I am not sure how this started... I am using the most updated version of woocommerce.
Website: http://museiam.ca/
I would appreciate any help as I'm quite stumped.
Issue #1 - Failing to load, redirect loop
According to your comments about the error logs the product page is doing a redirect to itself, and getting stuck in that loop. This explains the "10 internal redirects" error message. The access log error is likely just a side effect of having so many of the same repeat requests in such a brief time window.
Note that I could not reproduce this issue, but I got a very similar issue (below). I was unable to determine why this is happening through poking around. This may take some code investigation (aka, on your end). Is this a custom WP theme?
Issue #2 - Loading complete, but not displayed
A second type of error occurs which is similar. Middle-click or open a product in a new tab. Or click on a direct link to a product, such as: http://museiam.ca/product/black-cut-sleeve-sweater/
The content will load, but it will be a white page. In this case, the javascript has loaded content but did not complete the loading event to make it visible.
You can confirm the second issue by opening your dev tools (for chrome: F12), and entering the following javascript into the script console:
jQuery('.global_content_wrapper').css('opacity', 1)
This should make the content visible.
EDIT: It seems issue #2 is also inconsistent, sometimes it does work - though much less often than following a link from within the website. These two issues may be one in the same.

Close a page and redirect to previous page

I'm trying to find a way to close a document page that is opened when a user clicks a link, but the document is not found and then displays a message as such. I've currently got the message and check for it working, but I'm running into issues with closing said document page and redirecting/refreshing the page the user tried to open the document from. I've tried Response.Redirect(Request.UrlReferrer.AbsoluteUri) which gets me to the correct page, but the problem now is the document page is left open creating duplicate pages. Is there an easier way to go about doing this? Thanks in advance.

Drupal Computed Field with Views

I have some Computed Fields and in these fields, I get some HTML codes with simple_html_dom.php class from some sites. Codes works perfectly on pages, but when I try to get these fields to use in a View, Drupal gives the following error.
http://i.stack.imgur.com/W2Rhc.jpg
Anybody can help?
Even if it is not the best solution, after installing Views PHP module of Drupal, problem is slightly solved. I still get the error message on every time I try to change something, also I am having difficulties on making a change on the view, like saving and adding the same thing 5 times and got successfull, still it is a solution.
This message usually appears when you try to save the form before the ajax process has finished.
Try checking the 'network' tab on developer tools installed within Google Chrome or by using a tool similar to firebug. This will show you the request being made via ajax and should give you more information to debug.

Resources