A+ | A - | RESET
Fixed | Wide | Full | Reset

Capture360.Net

Cover Every Angle

  Advanced search
Welcome, Guest. Please login or register.
Did you miss your activation email?
04:56 GMT - Tue 07 May 24

Login with username, password and session length
Pages: [1] 2  All
Author Topic: Install Not In Same Directory  (Read 18537 times)
0 Members and Guests are viewing this topic.
ClwnMan76
Convert
******
Posts: 12


« 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


WWW
« 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
Convert
******
Posts: 12


« 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


WWW
« 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
Convert
******
Posts: 12


« Reply #4 at: 06:08 GMT - Thu 18 Nov 10 »

hxxp: keepitstupid. com/g2modules. jpg
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« 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?

Code:
<?php
$path 
'';
for ( 
$i 2$i <= strlen($path); $i=$i+1) {
$testvar $i * -1;
if (substr($path$testvar1) == $slash) {
$parentdir substr($path0$testvar);
$g2dir substr(__DIR__0, -16);
echo 'parentdir: ' $parentdir '<br>g2dir: . $g2dir;
break;
}
}
?>


Let me know when done.
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« 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


WWW
« Reply #7 at: 07:04 GMT - Thu 18 Nov 10 »

Sorry. Error in the code. Use this instead.

Code:
<?php
$path 
'SERVER PATH TO ZC ADMIN FOLDER';
for ( 
$i 2$i <= strlen($path); $i=$i+1) {
$testvar $i * -1;
if (substr($path$testvar1) == "/") {
$parentdir substr($path0$testvar);
$g2dir substr(__DIR__0, -16);
echo 'parentdir: ' $parentdir '<br>g2dir: . $g2dir;
break;
}
}
echo '
ERROR';
?>

Logged
ClwnMan76
Convert
******
Posts: 12


« Reply #8 at: 07:14 GMT - Thu 18 Nov 10 »

Think I got it.
Logged
ClwnMan76
Convert
******
Posts: 12


« 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
Convert
******
Posts: 12


« 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


WWW
« Reply #11 at: 07:27 GMT - Thu 18 Nov 10 »

It was my fault.

Replace line 8 with
Code:
echo 'parentdir: ' $parentdir . '<br>g2dir: ' . $g2dir;
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« 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
Convert
******
Posts: 12


« Reply #13 at: 07:35 GMT - Thu 18 Nov 10 »

I think I changed it, but I don't see a change.
Logged
ClwnMan76
Convert
******
Posts: 12


« Reply #14 at: 07:41 GMT - Thu 18 Nov 10 »

Do you have a paypal for donations?
Logged
Pages: [1] 2  All
Jump to:  

Latest Posts
by Dayo
[21:04 GMT - Tue 19 Aug 14]

[22:20 GMT - Sat 16 Aug 14]

[21:15 GMT - Wed 09 Apr 14]

by Dayo
[17:18 GMT - Tue 21 Jan 14]

[15:55 GMT - Sun 15 Sep 13]
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Corto design TinyPortal v0.9.8 © Bloc
Configured by Dayo Akanji
Contact