Hi All,

My hosting provider updated the server with PHP version 5.3 where our Drupal 6.4 website is installed. This caused all the themes to break and images were not displayed on the site. After some research found that I needed to update the Drupal core to support the newer version of PHP.

So updated the Drupal core to 6.28 (and other modules to match), and after a few hassles, I have most of it working now, but still have one issue I cannot resolve.

The problem is that the themes do not skin the website. The site has no colours etc being displayed, everything is shown as plain text on a white background. The layout looks about right though, so things are in the right place, but no colours, or theme graphics. I am using the Pixture theme, but have tried all the "out of the box" themes, and they are not working either.

I have trawled the forums, and google, and tried some things that looked to be related, but have not seen quite the same thing, or have found people with similar issues but no resolution to them.

This site was set up about 4 years ago for our photography club, and it has been working fine up until the PHP upgrade occurred.

My setup looks ok in the status report and all modules and themes are up to date…

Drupal 6.28
Access to update.php Protected
CAPTCHA Already 21 blocked form submissions
CKEditor 4.1.2
Configuration file Protected
Cron maintenance tasks Last run 6 hours 56 min ago
You can run cron manually.
Database updates Up to date
Drupal core update status Up to date
File system Writable (public download method)
GD library bundled (2.1.0 compatible)
Image import Import directory sites/dvps/files/images/import exists.
Image module directories Exists (sites/default/files/images).
Image toolkit The gd toolkit is installed.
Module and theme update status Up to date
MySQL database 5.0.96
PHP 5.3.25
PHP memory limit 64M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache

I have been trying everything I can think of, and anything I could find online for a week now, posted on this forum and receive no responses (probably posted in the wrong spot before, if so my apologies). Is this issue really that difficult to resolve?

Any help would be greatfully accepted.

Comments

VM’s picture

any errors in your drupal logs? or watchdog table?

dvpsorg’s picture

Hi,

Thanks for the reply. I have had a look at the logs during this process, and did see some early issues such as this when I tried to change a theme…

imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-119ba229/screenshot.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.

I changed permissions on that folder and that stopped the errors, but no change in behaviour. I could see the folder was then created. I am guessing this is where the skin data is stored based on the theme option you choose, but for some reason perhaps thats not where drupal is looking for it?

To be honest I am not a web admin, but have some technical skills, so have to say I was not sure what the watchdog table is. I found it in the drupal DB, but am not really sure what I am looking at. The timestamps on the records look like a serial date of some type, so not sure how to convert them. I did find what looks to be some related records to above, but not sure when they actually occurred. I pulled this from on of the variables fields...

a:4:{s:6:"%error";s:7:"warning";s:8:"%message";s:177:"imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-119ba229/screenshot.png' for writing: No such file or directory";s:5:"%file";s:52:"/home/dvpsorg/public_html/modules/color/color.module";s:5:"%line";i:514;}

So it looks related but not sure if it is current. I went into the site and changed to a new theme, and then checked the logs and the watchdog. There doesn't seem to be anything new in the logs at that point. And the theme colours etc did not stick. I should clarify, that when I change a theme, the layout seems to vary with different themes, just the "skin" doesn't appear. So part of the process is working, just not colours or graphics related to the theme.

dvpsorg’s picture

Still looking to get this resolved.

VM’s picture

what are the permissions on the each of the folders in the chain?

files/color/pixture-119ba229

dvpsorg’s picture

Permissions are as follows…

files = 777
color = 777
pxiture-119ba229 = 775

Thanks.

VM’s picture

if pxiture-119ba229 is changed to 777 does issue persist?

dvpsorg’s picture

Yep still does. I had tried this before.

There seems to be some other fundamental issue with the themes, but it appears not to be as simple as I would have thought. I have a feeling that this issue is somehow tied up with images in general. This was also an initial problem I had after the upgrade, but thought I had overcome that particular challenge. I am not so sure now as I tried to add an image to the site yesterday and it is showing up as a broken link. The image file is in the right folder, with all the other images that display correctly with the correct permissions. This is driving me nuts :-(

I wonder if I should just try and upgrade the whole site to V7 and see what happens. The only challenge I have is any modules that don't work under v7.

dvpsorg’s picture

I have been looking at my backup of v6.4 prior to doing the upgrade to 6.28. I had found a bunch of the folders had differing permissions which looked odd. I aligned the new install to match the old install folder permissions, and started to see something interesting. Folders like site/default/files was set to 755 in my back up, but I had to change this to 777 to get Drupal to run. Oddly the look of the system is better with this folder set to 755, by this I mean that the layout and some colours are showing up, but the these is still not working.

The trouble is that I have to set the permissions back to 777 on this folder so that Drupal does not complain that it can't write files. Anyway I changed the permissions back to 777, and when I went to change a theme to see if it made any difference, I start to see these errors...

The selected file sites/all/themes/pixture/images/menu-collapsed.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/menu-expanded.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/menu-leaf.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/button.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/button-o.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-tl.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-tc.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-tr.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-ml.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-mr.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-bl.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-bc.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/teaser-br.gif could not be uploaded, because the destination is not properly configured.
The selected file sites/all/themes/pixture/images/logo.png could not be uploaded, because the destination is not properly configured.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/header.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/bg-header.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/bg-footer.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/bg-menu.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/bg-title.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.
warning: imagepng() [function.imagepng]: Unable to open 'sites/default/files/color/pixture-5edd73b6/bg-wall.png' for writing: No such file or directory in /home/dvpsorg/public_html/modules/color/color.module on line 514.

Anyone got any ideas what the issue is? Please?

dvpsorg’s picture

Someone must have some idea??

atzi’s picture

Have you tried to reinstall all the files from a fresh extracted 6.28 then put your site files in?