ClwnMan76
|
|
« at: 23:13 GMT - Wed 17 Nov 10 » |
|
I am at my wit's end here! I have installed gallery and your latest zen cart and the latest bridge I just got today. I am now to the part where I am configuring the module. When I go to put in the complete path to the cart, it is saying it says
Your Zen Cart installation is not in a subdirectory of Gallery. This module requires Zen Cart to be installed as a direct subdirectory of Gallery2.
I know for a fact it is. I can share print screens if you are not sure of a common error I am making. Also, I am not using the url of course, I am using the full directory path!
Please let me know what info you need to help. Perhaps we can Skype and share screen?
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #1 at: 05:29 GMT - Thu 18 Nov 10 » |
|
Just saw your post on the G2 site before coming here to check. Looks like the code to parse the directory has a bug ... works on my system though. I'll review the code and update you. Subscribe to the announcements thread http://capture360.net/index.php/topic,139.0.html(click notify link).
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #2 at: 05:50 GMT - Thu 18 Nov 10 » |
|
Thanks so much. I'm supposed to have this ready tomorrow evening. I may just have to do it ghetto style. haha
Thanks for getting back to me so quickly and if you have time to help me fix, I appreciate your time!!
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #3 at: 06:02 GMT - Thu 18 Nov 10 » |
|
No probs. We can either fix it to work properly or just disable the check.
Towards a proper fix, can you post a link to a screenshot showing your G2 modules directory? Basically, I want to see the directory path there.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #4 at: 06:08 GMT - Thu 18 Nov 10 » |
|
hxxp: keepitstupid. com/g2modules. jpg
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #5 at: 06:57 GMT - Thu 18 Nov 10 » |
|
Can you create a php file called pathtest.php in your /modules/zencart directory and place this code in after filling in the server path to your zencart admin at the top? <?php $path = ''; for ( $i = 2; $i <= strlen($path); $i=$i+1) { $testvar = $i * -1; if (substr($path, $testvar, 1) == $slash) { $parentdir = substr($path, 0, $testvar); $g2dir = substr(__DIR__, 0, -16); echo 'parentdir: ' $parentdir . '<br>g2dir: . $g2dir; break; } } ?>
Let me know when done.
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #6 at: 07:01 GMT - Thu 18 Nov 10 » |
|
That is, server path should go into $path = 'SERVER PATH';
Also this should go into the actual site you want to install on.
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #7 at: 07:04 GMT - Thu 18 Nov 10 » |
|
Sorry. Error in the code. Use this instead. <?php $path = 'SERVER PATH TO ZC ADMIN FOLDER'; for ( $i = 2; $i <= strlen($path); $i=$i+1) { $testvar = $i * -1; if (substr($path, $testvar, 1) == "/") { $parentdir = substr($path, 0, $testvar); $g2dir = substr(__DIR__, 0, -16); echo 'parentdir: ' $parentdir . '<br>g2dir: . $g2dir; break; } } echo 'ERROR'; ?>
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #8 at: 07:14 GMT - Thu 18 Nov 10 » |
|
Think I got it.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #9 at: 07:19 GMT - Thu 18 Nov 10 » |
|
***Path Removed***
Think I did something wrong. You want an ftp login?
|
|
« Last Edit: 07:31 GMT - Thu 18 Nov 10 by Dayo »
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #10 at: 07:25 GMT - Thu 18 Nov 10 » |
|
****Login Details Removed****
|
|
« Last Edit: 07:28 GMT - Thu 18 Nov 10 by Dayo »
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #11 at: 07:27 GMT - Thu 18 Nov 10 » |
|
It was my fault. Replace line 8 with echo 'parentdir: ' $parentdir . '<br>g2dir: ' . $g2dir;
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #12 at: 07:29 GMT - Thu 18 Nov 10 » |
|
thanks for the login details.
I edited the post to remove it.
Put the change above in and let me know.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #13 at: 07:35 GMT - Thu 18 Nov 10 » |
|
I think I changed it, but I don't see a change.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #14 at: 07:41 GMT - Thu 18 Nov 10 » |
|
Do you have a paypal for donations?
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #15 at: 07:46 GMT - Thu 18 Nov 10 » |
|
Nevermind. I found the bug.
I need to take my Missus out and will sort it when I get back home later.
You can delete the ftp access as well as the pathtest php file.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #16 at: 07:48 GMT - Thu 18 Nov 10 » |
|
I will take a nap and try back in 3 hours then. Thanks again!
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #17 at: 11:01 GMT - Thu 18 Nov 10 » |
|
Hope you had a good time! :)
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #18 at: 11:24 GMT - Thu 18 Nov 10 » |
|
I have uploaded a new version ... 3.3.1b
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #19 at: 12:18 GMT - Thu 18 Nov 10 » |
|
FYI: Can't PM you anymore. Says I went over my 6 allotted for an hour.
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #20 at: 12:27 GMT - Thu 18 Nov 10 » |
|
I see. Well make sure you have followed the steps to change the admin name as set out here: http://tutorials.zen-cart.com/index.php?article=33Then copy the two inc files I PMed you into the gallery2 zencart module folder and you should be fine. I need to run and will check back later.
|
|
|
Logged
|
|
|
|
ClwnMan76
|
|
« Reply #21 at: 12:54 GMT - Thu 18 Nov 10 » |
|
What were the 2 files? I had to delete the PMs as my box was full. I got the admin to work. I had missed a step. :(
|
|
|
Logged
|
|
|
|
Dayo
Sheriff
Posts: 447
|
|
« Reply #22 at: 14:27 GMT - Thu 18 Nov 10 » |
|
module.inc and AdminZenCart.inc
|
|
|
Logged
|
|
|
|
|