Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Display Logs Plugin Stuck In A Loop

    PHP Code:
        use Zencart\FileSystem\FileSystem;

        
    $test FileSystem::getInstance()->getPluginAbsoluteDirectory('EZ-Feeds');
        echo 
    "-------->" $test "<---------<br>";
        
        
    $path_info dirname(__DIR__3);

        echo 
    "-------->" $path_info "<---------<br>";

        die(
    '<br>' __FILE__ ':' __LINE__); 
    i would explore the dirname (as well as pathinfo) functions in php. much more reliable. you might need to append a trailing slash.

    i would advise you to use your own version number for your plugin; ie 1.0.0 and update as necessary. 1.5.7c is the zen-cart version, not your plugin version.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    391
    Plugin Contributions
    0

    Default Re: Display Logs Plugin Stuck In A Loop

    Quote Originally Posted by carlwhat View Post
    PHP Code:
        use Zencart\FileSystem\FileSystem;

        
    $test FileSystem::getInstance()->getPluginAbsoluteDirectory('EZ-Feeds');
        echo 
    "-------->" $test "<---------<br>";
        
        
    $path_info dirname(__DIR__3);

        echo 
    "-------->" $path_info "<---------<br>";

        die(
    '<br>' __FILE__ ':' __LINE__); 
    i would explore the dirname (as well as pathinfo) functions in php. much more reliable. you might need to append a trailing slash.

    i would advise you to use your own version number for your plugin; ie 1.0.0 and update as necessary. 1.5.7c is the zen-cart version, not your plugin version.
    Thanks Carl. It looks like you answered about the same time I found that solution.

    I think I will keep my version number as is. I have been working on this plugin since 1.3.8a. If I ever submit it for approval, I will rename it if needed.

    I ran across your other suggestions about dirname and pathinfo last night while reading other posts about zc_pluggins...very informative and useful.

    I actually ended up putting my custom define at the top of my filenames and deleting my init and extra configures files.

    I was making things way to difficult because I had not grasped the new directory structure, tools available and because I am not used to working with classes. I was trying to use the DisplayLogs as a boiler plate...mistake on my part. I don't need to use the scripted plugin method at this point. The basic plugin method will probably suit my needs.

    I experimented with adding code to the end of the bootstrap file to try and create a defined zc_plugins directory for every plugin...all the required info is available there, why not automate it? I couldn't get the define to pass to any other files. Maybe someone with more expertise can figure it out and have it added in the future.

    I have working code now under the zc_plugins structure so I will bury this dead horse for now.

    Thanks again, everyone.

 

 

Similar Threads

  1. v151 USPS K7 install - Stuck in a "Missing Keys or Out of date you should reinstall!" loop
    By Randolph Hoppe in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 2 Jun 2015, 07:58 PM
  2. Stuck in a loop with NZ vs NZD as currency
    By hostinz in forum PayPal Express Checkout support
    Replies: 26
    Last Post: 9 Apr 2007, 06:49 AM
  3. Overseas customer stuck in Checkout/PayPal loop!
    By willits in forum Addon Payment Modules
    Replies: 6
    Last Post: 16 Mar 2007, 07:31 AM
  4. HELP! orders get stuck in a loop
    By Kaptain Jack in forum Managing Customers and Orders
    Replies: 2
    Last Post: 11 Jul 2006, 12:10 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