Results 1 to 10 of 1988

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by weezee View Post
    When I click check link I get this message:

    Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625


    I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623

    I think I posted this in the wrong forum. help with logo sideboxes sorry.
    Which version of Links Manager are you using?

  2. #2
    Join Date
    May 2006
    Location
    Louisiana
    Posts
    263
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by clydejones View Post
    Which version of Links Manager are you using?

    I am using links_manager_v3-5-2

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by weezee View Post
    I am using links_manager_v3-5-2
    Quote Originally Posted by weezee View Post
    When I click check link I get this message:

    Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625


    I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623

    I think I posted this in the wrong forum. help with logo sideboxes sorry.
    This is the entire section of code that applies to this issue:

    Please compare the following with your copy of admin/links.php

    PHP Code:
          break;
        case 
    'check':
          
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_CHECK_LINK '</b>');

          
    $url $lInfo->links_reciprocal_url;
          
    $link_check_status false;
          
    $link_check_status_text '';
          
          if (
    function_exists('curl_exec')) {
            
    $c curl_init();
            
    curl_setopt($cCURLOPT_RETURNTRANSFER1);
            
    curl_setopt($cCURLOPT_URL$url);
            
    $content curl_exec($c);
            
    curl_close($c);
            if (
    $content) {
    // I *think* this is the right preg_match syntax ... please double-check that it works as desired.
              
    if (preg_match('/'.LINKS_CHECK_PHRASE.'/i'$content)) {
                
    $link_check_status true;
              }
            }
          } else if (
    ini_get('allow_url_fopen') == TRUE && file($url)) {
            
    $file fopen($url,'r');

            while (!
    feof($file)) {
              
    $page_line trim(fgets($file4096));

              
    // I recommend changing this eregi to a preg_match for PHP 5.3 compatibility:
              
    if (preg_match('/'.LINKS_CHECK_PHRASE.'/i'$page_line)) {
                
    $link_check_status true;
                break;
              }
            }

            
    fclose($file);
          } else {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_ERROR;
          }

          if (
    $link_check_status == true) {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_FOUND;
          } elseif (
    $link_check_status_text == '') {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_NOT_FOUND;
          }

          
    $contents[] = array('text' => TEXT_INFO_LINK_CHECK_RESULT ' ' $link_check_status_text);
          
    $contents[] = array('text' => '<br /><b>' $lInfo->links_reciprocal_url '</b>');
          
    $contents[] = array('align' => 'center''text' => '<br /><a href="' zen_href_link(FILENAME_LINKSzen_get_all_get_params(array('lID''action')) . 'lID=' $lInfo->links_id) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
          break; 

  4. #4
    Join Date
    May 2006
    Location
    Louisiana
    Posts
    263
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by clydejones View Post
    This is the entire section of code that applies to this issue:

    Please compare the following with your copy of admin/links.php

    PHP Code:
          break;
        case 
    'check':
          
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_CHECK_LINK '</b>');

          
    $url $lInfo->links_reciprocal_url;
          
    $link_check_status false;
          
    $link_check_status_text '';
          
          if (
    function_exists('curl_exec')) {
            
    $c curl_init();
            
    curl_setopt($cCURLOPT_RETURNTRANSFER1);
            
    curl_setopt($cCURLOPT_URL$url);
            
    $content curl_exec($c);
            
    curl_close($c);
            if (
    $content) {
    // I *think* this is the right preg_match syntax ... please double-check that it works as desired.
              
    if (preg_match('/'.LINKS_CHECK_PHRASE.'/i'$content)) {
                
    $link_check_status true;
              }
            }
          } else if (
    ini_get('allow_url_fopen') == TRUE && file($url)) {
            
    $file fopen($url,'r');

            while (!
    feof($file)) {
              
    $page_line trim(fgets($file4096));

              
    // I recommend changing this eregi to a preg_match for PHP 5.3 compatibility:
              
    if (preg_match('/'.LINKS_CHECK_PHRASE.'/i'$page_line)) {
                
    $link_check_status true;
                break;
              }
            }

            
    fclose($file);
          } else {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_ERROR;
          }

          if (
    $link_check_status == true) {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_FOUND;
          } elseif (
    $link_check_status_text == '') {
            
    $link_check_status_text TEXT_INFO_LINK_CHECK_NOT_FOUND;
          }

          
    $contents[] = array('text' => TEXT_INFO_LINK_CHECK_RESULT ' ' $link_check_status_text);
          
    $contents[] = array('text' => '<br /><b>' $lInfo->links_reciprocal_url '</b>');
          
    $contents[] = array('align' => 'center''text' => '<br /><a href="' zen_href_link(FILENAME_LINKSzen_get_all_get_params(array('lID''action')) . 'lID=' $lInfo->links_id) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
          break; 
    Sorry just getting back, I lost my site.

    yes its the same as my copy starting on line 610-659.


    I run the uninstall SQL, and reinstalled v3.5.2 and when I run the install v3.5.2 SQL I got this:

    1109 Unknown table 'links_status' in where clause
    in:
    [DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

 

 

Similar Threads

  1. Testimonial Manager Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 1500
    Last Post: 4 Feb 2021, 04:12 PM
  2. v154 News Box Manager v2.0.0 [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 84
    Last Post: 19 Jan 2021, 04:17 PM
  3. Download File Manager Support Thread
    By balihr in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 17 Aug 2017, 10:32 PM
  4. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM
  5. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM

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