Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   upgrading to version 3.6: CSS issues (http://forum.bytesforall.com/showthread.php?t=12051)

fex Jan 6, 2011 09:03 AM

upgrading to version 3.6: CSS issues
 
Hi everyone,
I guess I did something stupid and need some advice. I have some CSS issues and lost all formatting of the css.php while trying to solve the problem.

I updated today to 3.6 via the automatic option (not manually). Beforehand I was running 3.5.3 (I believe). WP Version is 3.0.4.

Now I ran into some CSS issues and tried, after having done some research, to apply the fix.

Unfortunately, when applying the fix I saved the css.php with notepad and now have a mess in the file = everything in 2 lines without formatting (smart me, I know). Furthermore I do not have a backup of the css.php. (even smarter, huh?)

Besides the syntax error I'm getting now for the css.php, any idea if/how I can have Atahualpa recreate a properly formatted css.php?

As you can tell I'm not very sophisticated :o

juggledad Jan 6, 2011 09:26 AM

download a new copy of the theme (http://wordpress.bytesforall.com/?p=96) unzip it and upload a fresh copy of css.php

fex Jan 6, 2011 09:48 AM

Thank you! I included the fix and now the frontend is simply grey without anything on it (had that before).

The CSS seems not to be processed completely. The code of the the page stops in the part of the "LOGO AREA" of the css.php. More precise: after the black lines, the red one is not processed/doesn't appear.

Code:

table#logoarea {

    width: 100%;

    border-spacing: 0px;

    <?php include('bfa://logoarea_style') ?>

    }

Any suggestions?

juggledad Jan 6, 2011 10:11 AM

what do you have at ato->Style & edit HEADER AREA->Logo Area: Styling?

fex Jan 6, 2011 10:17 AM

Nothing: blank (default)

juggledad Jan 6, 2011 10:19 AM

edit header.php and add this as the first line
HTML Code:

<?php global $templateURI,  $homeURL; ?>

fex Jan 6, 2011 10:35 AM

Doesn't really change anything, the CSS processing is still stuck at the same place :(

juggledad Jan 6, 2011 10:38 AM

send me a PM with a admin ID/PW so I can take a look.

interfasys Jan 11, 2011 09:49 PM

This change to this new protocol "bfa://" will break a lot of sites...

This is what shows up in the logs:
ALERT - Include filename ('bfa://logoarea_style') is an URL that is not allowed

EDIT: This is an alert produced by Suhosin

interfasys Jan 11, 2011 10:03 PM

And the solution is...
Drum roll!
Tadaaaa!

Code:

# cd /home/user/public_html
# nano .htaccess

Paste this at the beginning
Code:

php_value suhosin.executor.include.whitelist bfa://
This will only work if your host lets you override some of the suhosin restrictions...

Flynn Jan 12, 2011 06:21 AM

I am looking into this. The thing is "eval" isn't allowed anymore on themes listed at wordpress.org because eval can be used to do fishy things.

Stream wrappers seemed to be the ideal alternative, I even planned to use stream wrappers more often in the future.

Eval and stream wrappers can be used to insert user code that contains PHP. With eval and stream wrappers the PHP is processed instead of just being printed. In Atahualpa it's used to process the PHP code that a user may have inserted into any of the text areas in the theme options.

The only alternatives I can currently think of:
  • Use one of the default existinging stream wrappers. Not sure right now if this is even possible
  • Write the content of user PHP code to a temporary file first, then include that file. This seems like a waste of resources but maybe it's not that bad.

interfasys Jan 12, 2011 09:50 AM

I'm not entirely sure, but I think using those stream wrappers is slower than normal calls.
While migrating to 3.6.1, I was doing lots of tests and ended up very often with broken pages. the CSS was never fully loaded or was getting messed up.
Could be the caching system, minification or other things, but since it's CSS related, I suspect that there could be an issue here.

interfasys Jan 12, 2011 05:51 PM

I can confirm that there is something very broken with the way the pages are built in 3.6.1.
I've done tests disabling all cache and got the same results.

Some pages end up being corrupt. I can see multiple copies of the same content or missing css classes or missing content. It happens at random and sometimes reloading the page doesn't even fix it.

Other themes or Atahulapa 3.5.3 don't have these problems.

juggledad Jan 12, 2011 07:37 PM

can you point to an example?

interfasys Jan 12, 2011 11:44 PM

Sure, go here:
http://atahualpa.light.keoxia.com/

Just keep clicking on links, even the same one and you should see a lot of breakage. Somtimes it's just the end of the page that doesn't render correctly, or CSS show up as text or fonts are all wrong.

I had to enable external CSS loading, otherwise, it's a disaster.

juggledad Jan 13, 2011 03:47 AM

the only thing I see is that if you click on a category or recent post, there is an extra footer but I don't have the same issue on my test install. (on a mac using Safari)

Could you export your settings (ATO->export/import settings) and attach them to a reply.

interfasys Jan 13, 2011 03:53 AM

The extra footer is one of the lightest side effects.
It's kind of difficult to predict which combination of page switching will generate a problem, but if you constantly switch very quickly, it will start to appear.

No need to export the settings, they're the default. I haven't touched anything, so as to not taint the experiment.

Both suhosin and mod_security are active, so content is filtered, but I have zero problems with other, less advanced, themes.

juggledad Jan 13, 2011 06:18 AM

please disable 'theme my login' plugin and see what happens

interfasys Jan 13, 2011 06:43 AM

I've just tried and, unfortunately, it didn't change anything.

juggledad Jan 13, 2011 06:52 AM

i'm still seeing it's style sheet (??)

interfasys Jan 13, 2011 06:57 AM

Yes, because I had to re-enable it, it's a network plugin.
I just did some test while it was disabled for a few minutes.

interfasys Jan 13, 2011 08:07 AM

I forgot to add that the side effects are easier to see on Chrome

paulae Jan 13, 2011 09:41 AM

Not sure if this has anything to do with your problems, but see the stray greater-than symbol?
http://awesomescreenshot.com/0645vo69f

I don't see any of the problems you're reporting in Chrome or Safari on a Mac.

EDIT: OK, I looked at it again just now, in Chrome, and there are problems: http://awesomescreenshot.com/0295vp7ed

interfasys Jan 13, 2011 10:08 AM

Thx for taking a look. That's exactly what I'm talking about. You can get some minor problems like the sign you mentioned or a font that is wrong, but sometimes it can be multiple copies of the header, completely wrong colours, etc.

I'm guessing none of you are experiencing these issues with your installations of 3.6.1?

paulae Jan 13, 2011 10:47 AM

I have Atahualpa 3.6.1 installed on a test site here: http://fastwomen.com/

I just reverted back to the default theme options. I'm not seeing the problems you're seeing, although I do see the tab problem: if you are not logged in, and type your name in the Name field, then hit Tab, you jump to the message field, not to Email.


All times are GMT -6. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.