Forums / All Other Contributions/Addons / css javascript loader addon problems

css javascript loader addon problems

Started by tony_sar on 24 May 2010, 11:22 PM · Views: 61,262

Results 101 to 111 of 111
6 Dec 2012, 10:45 AM
#101
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

css javascript loader addon problems

Im using CSSJS from Author: Numinix Version: 2.1.0 + clear zen 1.51 + Vertrigoserv 2.29 on win8

I try to change in min/config.php but still not working i tried use this but not working too

include('C:/VertrigoServ/www/shop/includes/configure.php');

and css is valid from template classic
any next idea :(?

8 Dec 2012, 10:02 AM
#103
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: css javascript loader addon problems

<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>

<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: fopen(C:/VertrigoServ/www/shopen/min/cache/minify_stylesheet,stylesheet_css_buttons.css_f7e75ff6ce70434970d3341a363e168b) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in C:\VertrigoServ\www\shopen\min\lib\Minify\Cache\File.php on line <i>100</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0007</td><td bgcolor='#eeeeec' align='right'>349984</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\VertrigoServ\www\shopen\min\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0078</td><td bgcolor='#eeeeec' align='right'>1061744</td><td bgcolor='#eeeeec'>Minify::serve( )</td><td title='C:\VertrigoServ\www\shopen\min\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>66</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0355</td><td bgcolor='#eeeeec' align='right'>1353856</td><td bgcolor='#eeeeec'>Minify_Cache_File->store( )</td><td title='C:\VertrigoServ\www\shopen\min\lib\Minify.php' bgcolor='#eeeeec'>..\Minify.php<b>:</b>302</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.0359</td><td bgcolor='#eeeeec' align='right'>1354672</td><td bgcolor='#eeeeec'>Minify_Cache_File->fetch( )</td><td title='C:\VertrigoServ\www\shopen\min\lib\Minify\Cache\File.php' bgcolor='#eeeeec'>..\File.php<b>:</b>37</td></tr> <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.0360</td><td bgcolor='#eeeeec' align='right'>1354912</td><td bgcolor='#eeeeec'><a href='http://www.php.net/fopen' target='_new'>fopen</a> ( )</td><td title='C:\VertrigoServ\www\shopen\min\lib\Minify\Cache\File.php' bgcolor='#eeeeec'>..\File.php<b>:</b>100</td></tr> </table></font>
8 Dec 2012, 11:54 AM
#104
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: css javascript loader addon problems

Its working now ;) ... I didnt have in /min/ directory cache ...

8 Dec 2012, 9:45 PM
#105
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: css javascript loader addon problems

I got a problem with CSJLoader too, I have several jQuery minimified libraries and it is loading only the old one??? Also Google's speed checker, points out none of my javascript is compressed? my html_header is fine >>>

require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
/**
 * output main page HEAD tag and related headers/meta-tags, etc
 */
?>
<!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" <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo META_TAG_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="OSLLC" />
<meta name="generator" content="OSLLC;, http://www.theoutletseason.com eCommerce" />
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
<link rel="canonical" href="<?php echo $canonicalLink; ?>" />
<?php } ?>

<?php
/**
* load the loader files
*/

if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
	$RI_CJLoader->autoloadLoaders();
	$RI_CJLoader->loadCssJsFiles();
	$files = $RI_CJLoader->header();
	foreach($files['css'] as $file)
		if($file['include']) include($file['src']);
		else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<link rel=\"stylesheet\" type=\"text/css\" href='{$file['src']}' />\n";
		else echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\" />\n";
		
	foreach($files['jscript'] as $file)
		if($file['include']) include($file['src']);
		else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<script type='text/javascript' src='{$file['src']}'></script>\n";
		else echo "<script type=\"text/javascript\" src=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\"></script>\n";
}
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
?>
<?php echo rss_feed_link_alternate(); // RSS Feed ?>

<p> </p>

</head>
<?php // NOTE: Blank line following is intended: ?>

but still it's not loading the most recent library and probably that's why the conflict, I tried to search for general jQuery problems online, and found nothing that could be related to the way the loader works, so I don't know how to fix that, that is to make the scripts use the most recent library instead.
Check out my store in my signature and you will see sometimes instant search works(enter a few letter and it will show matches), and sometimes doesn't ...

25 Sep 2013, 3:14 AM
#106
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: css javascript loader addon problems

My CSS looks like it's loading funny. Can anybody tell me if this is normal?

#trailimageid{position:absolute;visibility:hidden;left:0px;top:0px;width:220px;height:0px;z-index:1000}#trailimageid
div{padding:5px;background-color:#FFF;border:1px
solid #888;text-align:center}#trailimageid
h1{font-size:100%;font-weight:normal;margin:0;padding:2px
0px;text-align:left;width:100%}#trailimageid
img{margin:2px;border:none}#un
.buttons{text-align:right;margin-top:10px}#un

It's creating a new line, but I'm not sure why. There seems to be a bunch of white space at the end of the lines, why would it create a new line?

Just wondering if this is normal and why it's happening?

31 Jul 2014, 8:05 AM
#107
haralambi_sertev avatar

haralambi_sertev

New Zenner

Join Date:
Jul 2014
Location:
Varna, Bulgaria, Bulgaria
Posts:
2
Plugin Contributions:
0

Re: css javascript loader addon problems

Hello, i just want to install CSS/JS Loader the last version from Numinix on my zen cart ver. 1.39.
I think I install it as described to install, but obviously wrong somewhere.
I read everything written here, but I did not find solution to my problem.
I took a few pictures to see the problem clearly.

Attachment 14348
Attachment 14349
Attachment 14350

to be precise, I once (only the first time to install it, then uninstall it then worked fine), but every time after that does not work.

Sorry if my problem is stupid, but I'm not a professional and do only what is wrote in instruction.
Thank you!

31 Jul 2014, 12:56 PM
#108
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: css javascript loader addon problems

Haralambi Sertev:

Hello, i just want to install CSS/JS Loader the last version from Numinix on my zen cart ver. 1.39.
I think I install it as described to install, but obviously wrong somewhere.
I read everything written here, but I did not find solution to my problem.
I took a few pictures to see the problem clearly.

Attachment 14348
Attachment 14349
Attachment 14350

to be precise, I once (only the first time to install it, then uninstall it then worked fine), but every time after that does not work.

Sorry if my problem is stupid, but I'm not a professional and do only what is wrote in instruction.
Thank you!

Quite honestly.. It's still not clear here what exactly "THE" problem is.. "does not work" is not very descriptive.. WHAT exactly "doesn't work"?? Describe the ISSUE you are having.. Screenprints are not helpful, descriptive words of your SYMPTOMS will be much more helpful..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

2 Aug 2014, 5:29 PM
#109
haralambi_sertev avatar

haralambi_sertev

New Zenner

Join Date:
Jul 2014
Location:
Varna, Bulgaria, Bulgaria
Posts:
2
Plugin Contributions:
0

Re: css javascript loader addon problems

Hi DIVAVOCALS, sorry for my bad answer, but i'm not specialist with zen cart, so i need of some help from people like you.
I see that javascript not work and give me error "Added CSS JS Loader Configuration" in red box. More also give me error and for
"Updates CSS JS Loader to v2.1.0"
"Updates CSS JS Loader to v2.2.1"
"Updates CSS JS Loader to v3.0.0"
"Updates CSS JS Loader to v3.0.1"
I don't know how to help to resolve the problem, but if is need to show some code i can do this.
Thank you for your support.

5 Aug 2014, 2:51 PM
#110
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: css javascript loader addon problems

I need some clarifications about how this module works. For example jquery.php located in mystore/plugins/riCjLoader/config

'1.11.0' => array(
'jscript_files' => array(
'jquery.js' => array(
'local' => 'jquery-1.11.0.min.js' ,
'cdn' => array(
'http' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js',
'https' => 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'
)
)
)
)

I want to know if my configuration is ok, because it seems is loading jQuery 2 times ( one from local and one from cdn ) . Is that ok ?

25 Aug 2014, 10:05 AM
#111
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: css javascript loader addon problems

andreitero:

I have the same problem, so far i tried modifying the loader.php sample to load some .js files on my home page, but it's not working as expected :no:

<?php $loaders[] = array('conditions' => array('pages' => array('index_home')), 'jscript_files' => array( 'jquery/jquery-1.4.2.min.js' => 10, 'fadeslideshow.js' => 11 )); ``` I am trying to load multiple .js files via loader and need to know what are these numbers for => 10, => 11. Are these sort orders? Also do I need to move all .js files from includes/templates/yourtemplate/jscript to ..../jscript/jquery?