Drupal 4.7.x

Photos Disappearing from My Site

52pd603 - November 19, 2009 - 18:02

My website is set up mainly to post travel articles. A few days ago the photos (except from the most recent article I added which is this one http://www.52perfectdays.com/articles/day-sedona) disappeared from my articles when you click to read the full article like here for example http://www.52perfectdays.com/articles/perfect-day-kailua/ There used to be a large photo at the top of this (and all) articles.

The photos are still visible in the preview mode like you can see here http://www.52perfectdays.com/destinations/denver but if you click on 'read full story' the photo isn't there anymore.

If I go into edit the article the photo is gone and the destination and category buttons are no longer clicked. If I try and add the photo again or click the buttons to pick a destination and category it won’t let me submit the content.

We are stumped. Any ideas?
Thanks in advance for any help on this.

Help text

Drupal modules can provide help text to users in the .info file, and by implementing hook_help(). A hook_help() implementation defines help text for the URLs your module provides (settings pages, editing forms, etc.), indexed by the path to the page. In addition, the special path 'admin/help#modulename' should be used to define an overview help page for each module.

Short Description

A short description of your module goes in the mymodule.info file, in element "description"; this description is displayed on the Modules administration screen, to tell a site administrator what your module does. The description should start with a verb and be relatively concise. Example (from the core node module in Drupal 7):

description = Allows content to be submitted to the site and displayed on pages.

Help text for your module's paths

Help text for individual paths in your module is generally fairly brief, as it is displayed either at the top of the page or in a block, depending on which version of Drupal you are running. Here is an example of an individual path's help text, from the Node Revisions screen in the Node module [this is part of the node_help() implementation of hook_help()]:

case 'node/%/revisions':

Possible Cause: Duplicated PHP in block or node body

Possible Cause: Duplicated PHP in block or node body
In this case, PHP code may have been inserted into the body of a block, or is contained in a node's "body" field. This code declares the function in question more than once, producing the conflict. For example,

Fatal error: Cannot redeclare getnodecount() (previously declared in /var/www/sites/site.org/htdocs/includes/common.inc(1685) : eval()'d code:3) in /var/www/sites/site.org/htdocs/includes/common.inc(1685) : eval()'d code on line 9

Fix:
You can search your node_revisions table for the node IDs containing the offending code with something like:

SELECT nid
FROM node_revisions
WHERE body LIKE '%getnodecount%';

Then examine those nodes through Drupal's administrative interface, ensuring that each function is declared in only one place.

Something wrong with server side (PHP server, CGI server, other servers or control panel)

If you do NOT have full editing access to the web server. Such as share hosting you must contact your web hosting provider to open a ticket asking them to investigate. To speed up the investigation provide them with a screen shot or a copy of the error. Plus information about the last things you did just before noticing the error. There's maybe something wrong with the PHP server, CGI server or other servers. If this is the case there's absolutely nothing you can do to resolve this problem because you don't have access to those servers. The web hosting provider would be responsible for investigating and fixing.

If you do have full editing access to the web server. In other words 'root access'. Such as dedicated or VPS hosting the most likely cause of this issue is that one or multiple server files got somehow corrupted or misconfigured.

Misconfigured folder or file permissions

Check your Drupal file or folder permissions. Permissions means read and write accesses. They are maybe misconfigured. This is one of the most likely cause of this error.

For Drupal 6 read more at http://drupal.org/getting-started/6/install/set-permissions

Read the INSTALL.txt file that comes with Drupal. There is a section in there about permissions.

Corrupted Drupal file(s)

If none of the previous solutions worked you could try the following. But this should be try as a last resort.

Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.