CSS problem with Photo Shop CSS problem with Photo Shop
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CSS problem with Photo Shop

Started by jp-photo.dk, March 06, 2010, 12:02:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jp-photo.dk

I've upgraded CPG to v1.4.26 and that caused a problem with CSS not being used correctly. After a lot of poking around I narrowed the problem down to the Photo Shop plugin - when uninstalled CSS worked correctly. I then updated to plugin v1.4.1 (http://forum.coppermine-gallery.net/index.php/topic,57206.0.html) but this brought back the problem.

I've copied the images in the "images_to_move" folder to my "images" folder in the Hardwired-theme-folder. And added the changes in "css_changes" to the "style.css" also in the Hardwired-theme-folder.

A link to my gallery here: http://www.jp-photo.dk/galleri/index.php (Link is *NOT* worksafe)

Gene-2008

I'm not sure what you are running but the problem is much bigger than photo_shop.

Look at the code for your first page:
<!-- Start standard table -->
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">

        <tr>
                <td class="tableh1" width="80%" align="left"><b>Category</b></td>
                <td class="tableh1" width="10%" align="center"><b>Albums</b></td>
                <td class="tableh1" width="10%" align="center"><b>Files</b></td>
        </tr>

        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td></td><td><span class="catlink"><b><a href="index.php?cat=4">Andet</a></b></span></td></tr></table></td>
                <td class="catrow" align="center">43</td>
                <td class="catrow" align="center">1472</td>
        </tr>
        <tr>
            <td class="tableb" colspan="3"></td>

        </tr>

        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td></td><td><span class="catlink"><b><a href="index.php?cat=2">Heste</a></b></span></td></tr></table></td>
                <td class="catrow" align="center">88</td>
                <td class="catrow" align="center">7869</td>
        </tr>
        <tr>

            <td class="tableb" colspan="3"></td>
        </tr>

        <tr>

Should look more like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


I would suggest removing the photo_shop and then look (or let someone) look at your site/theme etc.

What appears to be happening is that only the maintable output is being sent to the screen.  The rest I.e. html, head, body menus etc are being lost.

Hope this helps,
Gene

jp-photo.dk

Yes, I was wondering about the exact same thing - missing the <html> and <body> tags etc.

I'm using the Hardwired-theme that came with CPG v1.4.26. And did a filecompare with WinMerge as to compare the files from the CPG-package with the files on the server. No differences there. So the installation should be a standard one.

As I can get it to work when photo_shop is disabled, I'm guessing that the problem would be somewhere within the plugin?

onthepike

See if there is an available update to the plugin that is causing this issue and update if applicable. Only then can either of your related threads be marked "Solved". That is, if an updated version solves the issue, of course.

I believe Phil has supplied a current 1.4.26 modpack update, but as someone sho doesn't use these, I don't know if your specific plugin is included within that package. If not, check the plugin downloads area for your specific plugin. Or the publishers web page.

jp-photo.dk

I've begun the debug my way down through the code, and the first thing I'm curious about is in the function include/functions.inc.php/load_template().

In this function I'm looking at the variable $THEME_DIR just before the fread(). As I've configured CPG to use Hardwired, I would have guessed that the path would point to the folder "themes/hardwired/", but it points to the folder "themes/classic/" instead?

I think I'll take a lot at where the $THEME_DIR gets initialized, and see if something goes wrong there.

jp-photo.dk

Mmm.. If I add the ?theme-parameter to the URL it displays the path to the theme correct.. http://www.jp-photo.dk/galleri/index.php?theme=hardwired

But still no theme or headertags showing..

jp-photo.dk

I'm running the latest version of the plugin (v1.4.1), but not the modpack. I'm a bit reluctant to install the modpack, as this seems to modify some core-files in CPG - and I'm not running the modpack at present.

onthepike

Quote from: jp-photo.dk on March 06, 2010, 12:02:25 PMI've upgraded CPG to v1.4.26 and that caused a problem with CSS not being used correctly. After a lot of poking around I narrowed the problem down to the Photo Shop plugin - when uninstalled CSS worked correctly. I then updated to plugin v1.4.1 (http://forum.coppermine-gallery.net/index.php/topic,57206.0.html) but this brought back the problem.

Is it possible that the updated/downloaded plugin was corrupt?

Are you running any other plugins that have not yet been updated?

If I'm following correctly, you updated CPG which rendered Photo Shop outdated and caused (you believe) the CSS output issue. You then uninstalled PS and the CSS problem disappeared. You then downloaded the latest version of PS, installed it, and once again resulted in the damaged output issue.

This would lead one to believe that the problem is Photo Shop specific, but that's not always the case, especially with other plugins installed. It could be a plugin conflict. It could be a server issue (check php compatibility; check phpinfo), It could be bad javascript. It could be a compromised web space. It could be a few different things.

I guess, my next step would be to download a fresh copy of the plugin, completely purge the current plugin from the directory tree after uninstall, deactivate all other plugins (if applicable) and go from there. I might even download a fresh copy of CPG itself. 

Or... maybe there's a legitimate bug? Perhaps post to Stramm's board? Surround yourself with others who utilize that particular plugin and have experience with it. I'm out of ideas :-)

jp-photo.dk

I've found the problem. It's something with functioncalls with referenced variables and PHP v5.3+. I've posted the change to the sourcecode in this thread: http://forum.coppermine-gallery.net/index.php/topic,57206.320.html

Joachim Müller