multitoys / css-x-fire

Automatically exported from code.google.com/p/css-x-fire
0 stars 0 forks source link

css-x-fire not working in php with include() #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
css-x-fire was working, but after update to new version of firefox, css-x-fire 
and firebug, its not working

What version of the product are you using? On what operating system?
css-x-fire 1.17
Firefox 4.0.1
Firebug 1.7.0
Windows 7

I have install Firefox not to the default Partition at C:/ but rather at D:/

Original issue reported on code.google.com by gerd.sch...@googlemail.com on 12 May 2011 at 6:00

GoogleCodeExporter commented 8 years ago
If you open about:addons in your browser and click the "Extensions" tab, can 
you verify that you have both Firebug and CSS-X-Fire listed there?

Original comment by ronnie.k...@gmail.com on 12 May 2011 at 6:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes, Firebug and CSS-X-Fire are listed there an they are active.

Original comment by gerd.sch...@googlemail.com on 12 May 2011 at 7:34

GoogleCodeExporter commented 8 years ago
Is Firebug working as expected?

Is the CSS-X-Fire toolwindow visible in the IDE?

If yes to both above questions, please try collecting logs as described in the 
FAQ and attach them here or send them to me personally at ronnie.kolehmainen at 
gmail for further investigation.

Another thing you can try is to install Firebug and CSS-X-Fire xpi in a clean 
profile as described here: 
http://getfirebug.com/wiki/index.php/FAQ#Installing_in_a_clean_profile

Original comment by ronnie.k...@gmail.com on 12 May 2011 at 7:47

GoogleCodeExporter commented 8 years ago
Firebug is working as expected,
and CSS-X-Fire toolwindow ist visible.

Here is the entry from the logfile:

2011-05-12 11:54:17,549 [ 525656]  DEBUG - ooglecode.cssxfire.StringUtils - 
extractPath() in = 
http://www.example.de/templates/standard/style/styles.php?v=1 
2011-05-12 11:54:17,550 [ 525657]  DEBUG - cssxfire.webserver.HttpRequest - Got 
CSS property change: {media=, path=/templates/standard/style/styles.php, 
filename=styles.php, selector=.selectLanguage .language_ru, property=height, 
value=50px, deleted=false} 
2011-05-12 11:54:17,555 [ 525662]  DEBUG - xfire.IncomingChangesProcessor - 
Searched CSS selectors for '.selectLanguage' ('.selectLanguage .language_ru'), 
got 0 results 
2011-05-12 11:54:17,555 [ 525662]  DEBUG - e.filter.ReduceStrategyManager - 
Filtering 0 candidates 
2011-05-12 11:54:17,555 [ 525662]  DEBUG - e.filter.ReduceStrategyManager - 
Filtering done, remaining 0 candidates 
2011-05-12 11:54:17,556 [ 525663]  DEBUG - xfire.IncomingChangesProcessor - 
Searched CSS selectors for '.selectLanguage' ('.selectLanguage .language_ru'), 
got 0 results 
2011-05-12 11:54:17,557 [ 525664]  DEBUG - e.filter.ReduceStrategyManager - 
Filtering 0 candidates 
2011-05-12 11:54:17,557 [ 525664]  DEBUG - e.filter.ReduceStrategyManager - 
Filtering done, remaining 0 candidates 

Original comment by gerd.sch...@googlemail.com on 12 May 2011 at 9:59

GoogleCodeExporter commented 8 years ago
Well the log says that the browser extension does its job so at least we know 
that the browser upgrade is not the cause of the problem.

Let's concentrate on the project settings and the IDE (assuming it is PhpStorm).

For some reason the selector '.selectLanguage .language_ru' cannot be found 
within the project files. The reason could be one of several:
1. Does it exist?
2. Is that file located within a source root? (check "Project Structure" in 
settings for blue folders)
3. Is it a php file? If so, check that it is outside <?php> tags.

Original comment by ronnie.k...@gmail.com on 12 May 2011 at 11:27

GoogleCodeExporter commented 8 years ago
Thank you for your support.

The file is a php file. For testing, i have make a css file - and it works!

But how can it work in a php file?

I make a php file, because of i will have one file for all styles:

<?php

  header('Content-type: text/css');
  header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 345600));

  @ob_start('ob_gzhandler');

  include('style.css');
  include('cart.css');
  include('order.css');

?>

Original comment by gerd.sch...@googlemail.com on 12 May 2011 at 12:04

GoogleCodeExporter commented 8 years ago
It should work if you uncheck both "Match filename" and "Use routes" in 
CSS-X-Fire settings.

Original comment by ronnie.k...@gmail.com on 12 May 2011 at 12:14

GoogleCodeExporter commented 8 years ago
Ok, Thank you for the Answer.

I will developing without php include() and when finished the project, i will 
make with include(), so it works.

Thank you very much.

Original comment by gerd.sch...@googlemail.com on 12 May 2011 at 1:43

GoogleCodeExporter commented 8 years ago

Original comment by ronnie.k...@gmail.com on 12 May 2011 at 2:11