Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 62
  1. #41

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by DivaVocals View Post
    Thank nigel and Glenn.. I'm just the backup singer in this group.. Just call me one of the Pips!!

    **on the midnight train to Georgia - whoo hoo**
    LOL sing it girl!
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  2. #42
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    8,755
    Plugin Contributions
    31

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by ScriptJunkie View Post
    LOL sing it girl!
    My Site
    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.

  3. #43

    Default Re: Updating Mod for 150 - Little Problem

    Ok, this worked fine on my test site, but installing it into a 150 live store gives me this error:

    PHP Parse error: syntax error, unexpected '}' in includes/modules/recent_products.php on line 20
    Suggestions?
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  4. #44
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    8,755
    Plugin Contributions
    31

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by ScriptJunkie View Post
    Ok, this worked fine on my test site, but installing it into a 150 live store gives me this error:



    Suggestions?
    Compare the includes/modules/recent_products.php files in your test and live store.. is the line where you get the error in your live store different?? and I don't use the line number as it's line 20 in the live store.. that same line might be a different line number in the test store..
    My Site
    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.

  5. #45

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by DivaVocals View Post
    Compare the includes/modules/recent_products.php files in your test and live store.. is the line where you get the error in your live store different?? and I don't use the line number as it's line 20 in the live store.. that same line might be a different line number in the test store..
    Unable to compare. I uninstalled the mod from my test store once testing was completed.

    During the initial install on the live store, filezilla kept timing out and disconnecting. So this morning, I did a complete uninstall, reinstall of the mod in case any files were corrupted the first time around.

    Same results. The code in includes/modules/recent_products.php, lines 17-21 is below. I don't know a lot about php code...but I don't see what's wrong with it.

    Code:
    if (RECENT_VIEWED_PRODUCTS_MAXIMUM < 1) 
    	//set the maximum number of recently viewed products here
    	 $maximum_recent = 5;
    	 } else {
    	 $maximum_recent = RECENT_VIEWED_PRODUCTS_MAXIMUM;
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  6. #46
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,964
    Plugin Contributions
    25

    Default Re: Updating Mod for 150 - Little Problem

    You're missing the { that should follow the if test:
    PHP Code:
    if (RECENT_VIEWED_PRODUCTS_MAXIMUM 1) {
        
    //set the maximum number of recently viewed products here
         
    $maximum_recent 5;
         } else {
         
    $maximum_recent RECENT_VIEWED_PRODUCTS_MAXIMUM

  7. #47
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    8,755
    Plugin Contributions
    31

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by gjh42 View Post
    You're missing the { that should follow the if test:
    PHP Code:
    if (RECENT_VIEWED_PRODUCTS_MAXIMUM 1) {
        
    //set the maximum number of recently viewed products here
         
    $maximum_recent 5;
         } else {
         
    $maximum_recent RECENT_VIEWED_PRODUCTS_MAXIMUM
    Ahhhhhhhhhhhhhhh.. this totally explains the error.. since the error says that a closing bracket was found when there was no opening one..


    Scriptjunkie, if you have a program like Developer's Notepad, it might have been able to help you spot this since it colors the code, and you can usually spot invalid stuff (like missing opening brackets..) because it would be colored differently.. Hard to explain this really.. If you use this program you will see what I mean.. Great for novices like myself to troubleshoot stuff with.
    Last edited by DivaVocals; 11 Apr 2012 at 04:45 PM.
    My Site
    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.

  8. #48

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by gjh42 View Post
    You're missing the { that should follow the if test:
    PHP Code:
    if (RECENT_VIEWED_PRODUCTS_MAXIMUM 1) {
        
    //set the maximum number of recently viewed products here
         
    $maximum_recent 5;
         } else {
         
    $maximum_recent RECENT_VIEWED_PRODUCTS_MAXIMUM
    Thanks Glenn! I'll get that fixed and upload a corrected fileset to the downloads section.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  9. #49

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by DivaVocals View Post
    Ahhhhhhhhhhhhhhh.. this totally explains the error.. since the error says that a closing bracket was found when there was no opening one..


    Scriptjunkie, if you have a program like Developer's Notepad, it might have been able to help you spot this since it colors the code, and you can usually spot invalid stuff (like missing opening brackets..) because it would be colored differently.. Hard to explain this really.. If you use this program you will see what I mean.. Great for novices like myself to troubleshoot stuff with.
    I use Notepad++ and it does indeed color the code....but I haven't been using it long enough to know what the color coding is telling me. LOL maybe I should read the help file <grin>
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  10. #50

    Default Re: Updating Mod for 150 - Little Problem

    Hmmm....ok...now I'm getting these errors:

    PHP Warning: require(includes/templates/template_default/templates/tpl_modules_recent_products.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /includes/templates/custom/templates/tpl_product_info_display.php on line 302
    and

    PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_modules_recent_products.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /includes/templates/custom/templates/tpl_product_info_display.php on line 302
    This is the code on line 302 of tpl_product_info_display.php:

    PHP Code:
    <!--bof recent products module-->
       <?php require($template->get_template_dir ('tpl_modules_recent_products.php',DIR_WS_TEMPLATE$current_page_base,'templates') . '/tpl_modules_recent_products.php'); ?>
       <!--eof recent products module-->
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

 

 
Page 5 of 7 FirstFirst ... 34567 LastLast

Similar Threads

  1. CSS updating problem!
    By Magik in forum Basic Configuration
    Replies: 5
    Last Post: 11 Jan 2010, 03:24 AM
  2. Downloads Updating Problem
    By Rasyr in forum Bug Reports
    Replies: 1
    Last Post: 18 Jan 2008, 07:12 PM
  3. problem with updating status
    By snarkys in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 13 Jan 2007, 02:50 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
  •