Page 23 of 71 FirstFirst ... 13212223242533 ... LastLast
Results 221 to 230 of 703
  1. #221
    Join Date
    Apr 2008
    Posts
    133
    Plugin Contributions
    1

    Default Can anyone please help? Fatal error...

    OK, so I went ahead and tried to install this. I am now having the same error as 'cartguin' above, which is:
    Code:
    Fatal error: Call to undefined method yclass::init_template() in /home/user2000/public_html/zencart/admin/module_manager.php on line 14
    First, I installed the latest version of module manager (module_manager_rev15.zip) according to instructions. That went fine, when I went to Tools > Module Manager, it showed that it was properly installed.

    So then I have carefully installed the latest version of cross sell advanced (cross_sell_advanced_rev185.zip), and when I go to the Module Manager, I get the above fatal error.

    Question: when it says to renamed the files i.e.:
    Code:
    2. Make sure to change the name of the following directories (from the ZIP) to match your template name:
        /includes/modules/YOUR_TEMPLATE 
        /includes/templates/YOUR_TEMPLATE 
        /includes/languages/english/YOUR_TEMPLATE
    ...does it mean to match the name to the current template's folder's name? In other words, my template lives inside a folder named:

    /includes/templates/theme033

    So I would named the above folders to (before uploading)?:
    Code:
        /includes/modules/theme033 
        /includes/templates/theme033 
        /includes/languages/english/theme033
    That is what I have done, anyway, it's not working. Any help would be greatly appreciated!

  2. #222
    Join Date
    Oct 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Well, Now I have the very same issue. I'm getting error:

    Fatal error: Call to undefined function: init_template() in /catalog/admin/module_manager.php on line 14

    I installed Module Manager and then Cross Sell. (I did have to create the .keep file.) I got Cross Sell installed and then it would not take any model numbers that I tried to enter. I decided to see if there was and issue with Module Manager. That's when I found the error. Since then, I have installed all three SQL patches (Through Tools/ Install SQL Patches)- (The third one failed and said there were duplicates)

    Now, I can get the model numbers to "take" but it's not showing up- That's my next project!!

    I'd like to either- get rid of module manager or figure out how to get rid of the error. I'm making this site for someone else and I really don't want the error there!

    Thanks!

  3. #223
    Join Date
    Feb 2008
    Posts
    48
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Quote Originally Posted by ladyink View Post
    Well, Now I have the very same issue. I'm getting error:

    Fatal error: Call to undefined function: init_template() in /catalog/admin/module_manager.php on line 14
    I too am experiencing this problem. I am testing this on my local machine using XAMPP. I believe that I have narrowed it down to the init_yclass.php file.

    When I first install Module Manager everything installs and works perfectly. Then when I install the Just Another Cross-Sell Module, overwriting the config.yclass.php and init_yclass.php files, I get the error mentioned above. However, if I don't overwrite the two mentioned files, then it "appears" to work properly.

    I then did some digging into the files and noticed that the confi.yclass.php files that are in the Module Manager and the Cross-Sell Module are identical. However the init_yclass.php files are different.

    Here is what the init_yclass.php file contains for the Module Manager:

    Code:
    <?php
    	require_once(DIR_FS_CATALOG.'includes/init_includes/init_yclass.php');
    ?>
    Here is what the init_yclass.php file contains for the Just Another Cross-Sell Module:

    Code:
    <?php
    	// y stands for yellow1912 :p. I simply add this to store all the functions frequently used in my mods
    	
    	// PHP4 always pass object by value (default) while PHP5 pass by reference
    	if (version_compare(phpversion(), '5.0') < 0) {
    	    eval('
    	    function clone($object) {
    	      return $object;
    	    }
    	    ');
    	}
    	
    	class yclass{
    		function db_result_to_string($glue, $db_result){
    			$temp_array = array();
    			if($this->is_obj($db_result,'queryFactoryResult')){
    				// We need to clone, because we don't want to touch the real object
    				while(!$db_result->EOF){
    					$temp_array[] = $db_result->fields['products_'.XSELL_FORM_INPUT_TYPE];
    					$db_result->MoveNext();
    				}
    				$db_result->Move(0);
    				$db_result->MoveNext();
    			}
    			
    			return implode($glue,$temp_array);
    		}
    		
    		// This function does not work for all languages! BEWARE
    		function array_to_upper(&$entries){
    			foreach($entries as $entry){
    				$entry = strtoupper($entry);
    			}
    		}
    		
    		// http://us3.php.net/manual/en/function.is-object.php#66370
    		function is_obj( &$object, $check=null, $strict=true ){
    			if (is_object($object)) {
    		    	if ($check == null) {
    		        	return true;
    		      	} else {
    		        	$object_name = get_class($object);
    		        	return ($strict === true)?( $object_name == $check ):( strtolower($object_name) == strtolower($check) );
    		      	}   
    		  	} else {
    		    	return false;
    		  	}
    		}
    	}
    ?>
    Why is it that when I write over the init_yclass.php file that the Module Manger with the one from the Just Another Cross-Sell Module, I receive the error mentioned above? I was assuming that this file should be written over once we copy the Just Another Cross-Sell Module files over into our installation.

    I am confused on the proper way to install this module and I would greatly appreciate any help on how to do this install.

    Thanks,

    Chris

  4. #224
    Join Date
    Oct 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Well, I guess that I should have added this... I got everything to work once I installed the Cross Sell Original Module first and then basically upgraded it to the Cross Sell advanced.

    It might help??
    Nancy

  5. #225
    Join Date
    Apr 2008
    Posts
    133
    Plugin Contributions
    1

    Default Re: Just another Cross-Sell mod (support thread)

    How exactly did you do that?

  6. #226
    Join Date
    Apr 2008
    Posts
    133
    Plugin Contributions
    1

    Default Re: Just another Cross-Sell mod (support thread)

    I just spent 3 hours looking into this further and trying to fix the problem, and I cannot get it to work.

    I find it distressing that the creator of the mod fails to respond. I understand that no support is guaranteed, but 3 or 4 people with the same problem shows that something is slightly different on the developer's system. On his system, the yclass or _yclass is being properly instantiated; on ours, it is not.

    I don't know enough about the inner workings of Zen Cart to get further than that.

    Does anyone know how to go about uninstalling this mess?

  7. #227
    Join Date
    Feb 2008
    Posts
    48
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    I tried installing the Cross Sell Mod first and then installing the Just Another Cross-Sell Mod (overwriting any files it asked) and I still continue to get the error.

    I am doing all of this on my local machine running XAMPP so that I can properly test before installing it on my live store.

    Any ideas what is going on?

    Thanks,

    Chris

  8. #228
    Join Date
    Oct 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    I wish I could explain, what I've done, a little better. I'm just not that good at this stuff- however, I'm starting to keep better notes.

    The only other thing I did was remove the files for the module manager- it was annoying me. I just installed the sql patches through the admin, like everything else.

    Let me know if that helps- I'll add it to my notes for future ref!

    Nancy

  9. #229
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Hello,

    I have a small dilema. I cant figure out how to use the Cross Sell 1-way, which makes me feel kinda stupid. In the instruction it says.

    I. To cross-sell 1 way (B to A, C to A. In other words, when customer views A they will see B and C but not vice versa):

    Check the box "Cross sell 1 way only?"

    Using our example above, A should be entered in the upper box amd B,C should be entered in the lower box.
    But what is considered the upper and lower box. I have tried a few gifferent things but I keep getting the same error.

    Please input main product's id
    Can anyone explain it a little more to me?

    Other than that the mod is working and looks great.

    Here is an example of it working on my site

    http://www.batteriesinaflash.com/ind...roducts_id=891
    User of zencart

  10. #230
    Join Date
    Jan 2008
    Posts
    75
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Any ideas

    Not Found
    The requested URL /shop/admin/xsell_products.php was not found on this server.

 

 
Page 23 of 71 FirstFirst ... 13212223242533 ... LastLast

Similar Threads

  1. Cross Sell Advanced [Support Thread]
    By DivaVocals in forum Addon Admin Tools
    Replies: 162
    Last Post: 28 Jan 2025, 01:37 PM
  2. Multi Cross Sell mod [Support thread]
    By gilby in forum All Other Contributions/Addons
    Replies: 475
    Last Post: 11 Apr 2020, 10:44 PM
  3. Trying to fully uninstall Cross Sell Just Another Mod
    By 1105designs in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Oct 2011, 04:03 AM
  4. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  5. "cross sell - just another cross sell mod"
    By australican in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 28 Apr 2010, 05:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR