VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: DH on September 01, 2007, 17:38:50 PM

Title: [FIXED] Frontend problems in the latest Joomla and VM1.1
Post by: DH on September 01, 2007, 17:38:50 PM
Hi everyone,

My question is simple,It shows in the front end as following:

On the PRODUCTCATEGORIESMODULE
QuoteWarning: include(D:\AppServ\www\joomla15/modules/vm_JSCook.php) [function.include]: failed to open stream: No such file or directory in D:\AppServ\www\joomla15\modules\mod_product_categories\mod_product_categories.php on line 59

Warning: include() [function.include]: Failed opening 'D:\AppServ\www\joomla15/modules/vm_JSCook.php' for inclusion (include_path='.;C:\php5\pear') in D:\AppServ\www\joomla15\modules\mod_product_categories\mod_product_categories.php on line 59

And then, when I click on the "FEATUREDPRODUCTS" or "RAMDOMPRODUCTS" module, it popup a warning such " operation terminal".

Any idea,pls?
Title: Re: Frontend problems in the latest Joomla and VM1.1
Post by: aravot on September 04, 2007, 01:34:16 AM
Which version of VM 1.1 are you using? Try nightly build (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=31381.0). Which version of Joomla 1.5?
Title: Re: Frontend problems in the latest Joomla and VM1.1
Post by: DH on September 13, 2007, 10:44:53 AM
Sorry for reply late, sir! I am trying the latest nightly build (942), the latest Joomla1.5 SVN,updated today.
Title: Re: Frontend problems in the latest Joomla and VM1.1
Post by: gregdev on September 13, 2007, 20:45:09 PM
Did you install the VirtueMart module (mod_virtuemart)? It is required for vm_JSCook.php to be present.

Greg
Title: Re: [RESPOND REQUESTED] Frontend problems in the latest Joomla and VM1.1
Post by: DH on September 14, 2007, 19:35:12 PM
Thanks for the tip!

Yeah,I did installed "mod_virtuemart", and now I find that "vm_JSCook.php is already inside the directory
Quote(root)\modules\mod_virtuemart
It should be present or not in this status?

And,I can go on testing without install (mod_virtuemart) module? Just curiously, I know I will go to release this module for the next step of testing.
Title: Re: [RESPOND REQUESTED] Frontend problems in the latest Joomla and VM1.1
Post by: aravot on September 15, 2007, 05:56:36 AM
Here it a screen-shot of the folder structure.

(http://www.filefarmer.com/aravot/joomla/vm/vm-modulefolderstructure.gif)

Marking resolved.
Title: Re: [RESOLVED] Frontend problems in the latest Joomla and VM1.1
Post by: DH on September 21, 2007, 03:13:09 AM
I got my screen shoot here, everything seems the same as the above photo.

Every time, I uninstall the previous verson of JA and VM,then install the latest nightly build. Every time,same problem comes out. Why  ???

But I find the "solution" from the other post as following:
Quoteedit the Product Categories module and change the 'Category display type' parameter to 'Linked List'.

It works fine so far.

[attachment cleanup by admin]
Title: Re: [RESOLVED] Frontend problems in the latest Joomla and VM1.1
Post by: aravot on September 28, 2007, 19:19:49 PM
I found the problem, I had manually copied the vm_JSCook.php file so didn't get the error, yesterday I started with fresh installation and got the error.

QuoteWarning: include(/home/example.com/modules/vm_JSCook.php) [function.include]: failed to open stream: No such file or directory in /home/example.com/modules/mod_product_categories/mod_product_categories.php on line 59

Warning: include() [function.include]: Failed opening '/home/example.com/modules/vm_JSCook.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/example.com/modules/mod_product_categories/mod_product_categories.php on line 59

In Joomla 1.5 modules are categorized in their respective folders so vm_JSCook.php and other related files are in mod_virtuemart folder however mod_product_categories.php file is looking in the main module folder for those files hence the error.

Joomla 1.5 r9065
VM 1.1 r962
Title: Re: [CONFIRMED] Frontend problems in the latest Joomla and VM1.1
Post by: gregdev on September 28, 2007, 23:13:39 PM
Yes. That is what is happening. It's not too bad to check with Joomla! version we're in and form paths based on that information. We're discussing, though, a different solution right now. We'll see which we decide to use.

Greg
Title: mod_Product_categories only works with vm_JSCook (after fixing the path)
Post by: gorbehnare on September 29, 2007, 02:17:19 AM
When using product categories module, only JSCOOK wokrs. Other menues will not work and the front end will display the following errors and warnings:

Fatal error: Cannot redeclare class MamboMartTree in /hermes/web03/b356/pow.rickypersaud/beta/modules/mod_virtuemart/vm_JSCook.php on line 80

Warning: include_once(/hermes/web03/b356/pow.rickypersaud/beta/modules/mod_product_categories/vm_transmenu/Shop_Menu.php) [function.include-once]: failed to open stream: No such file or directory in /hermes/web03/b356/pow.rickypersaud/beta/modules/mod_virtuemart/vm_transmenu.php on line 30

Warning: include_once() [function.include]: Failed opening '/hermes/web03/b356/pow.rickypersaud/beta/modules/mod_product_categories/vm_transmenu/Shop_Menu.php' for inclusion (include_path='.:/usr/local/lib/php') in /hermes/web03/b356/pow.rickypersaud/beta/modules/mod_virtuemart/vm_transmenu.php on line 30

Fatal error: Class 'Shop_Menu' not found in /hermes/web03/b356/pow.rickypersaud/beta/modules/mod_virtuemart/vm_transmenu.php on line 34


VM 1.1 SVN 961
Joomla! 1.5 SVN 9036

mod-product_categories.php has been modified (the path to mod_virtuemart was corrected):
if ( $menutype == 'links' ) {
/* MENUTPYE LINK LIST */
require_once(CLASSPATH.'ps_product_category.php');
$ps_product_category = new ps_product_category();

echo $ps_product_category->get_category_tree( $category_id, $class_mainlevel );

}
elseif( $menutype == "transmenu" ) {
/* TransMenu script to display a DHTML Drop-Down Menu */
include( $mosConfig_absolute_path . '/modules/mod_virtuemart/vm_transmenu.php' );

}
elseif( $menutype == "dtree" ) {
/* dTree script to display structured categories */
include( $mosConfig_absolute_path . '/modules/mod_virtuemart/vm_dtree.php' );

}
elseif( $menutype == "jscook" ) {
/* JSCook Script to display structured categories */
include( $mosConfig_absolute_path . '/modules/mod_virtuemart/vm_JSCook.php' );

}
elseif( $menutype == "tigratree" ) {
/* TigraTree script to display structured categories */
include( $mosConfig_absolute_path . '/modules/mod_virtuemart/vm_tigratree.php' );
}


Other types of menus work in mod_VirtueMart except for js_cook (It says something cannot be re-declared) and it's because I already have js_cook loaded in the product categories mod (that just makes logical sense). Disabling the category mode will fix this issue.
Title: Re: [CONFIRMED] Frontend problems in the latest Joomla and VM1.1
Post by: aravot on October 06, 2007, 20:30:11 PM
Q&T note; tracker URL -> http://virtuemart.net/index.php?do=details&task_id=1482&option=com_flyspray&Itemid=83&option=com_flyspray&Itemid=83