ANUBHAV67 / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Renaming the admin folder stops vqmod functioning in the back-end #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Renaming the admin folder stops vqmod functioning in the back-end.

I have edited the pathReplaces.php like this:
// START REPLACES //
$replaces[] = array('~^admin\b~', 'my_new_admin'); 
// END REPLACES //

What steps will reproduce the problem?
1. rename admin folder
2. edited config.php and admin/config.php
3. deleted vqmod/mods.cache and all files inside vqmod/vqcache

vQmod Version:2.3.2

Server Operating System:
1. windows 7 running uniserver with php5.3
2. Linux with php5.3

Original issue reported on code.google.com by win.the....@gmail.com on 16 Mar 2013 at 10:04

GoogleCodeExporter commented 9 years ago
Can you attach your mods.cache file

Original comment by DJG6...@gmail.com on 17 Mar 2013 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by win.the....@gmail.com on 18 Mar 2013 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
the 2 xml files attached are the only 2 in the xml folder. 
The vqmm_menu_shortcut.xml  will work on its own, but adding the other one will 
stop vqmod altogether. 

I've tried a few files, 30% work but the rest don't.

Everything works fine if the admin folder is not renamed. 

Original comment by win.the....@gmail.com on 18 Mar 2013 at 10:17

GoogleCodeExporter commented 9 years ago
You will need vqmod_opencart.xml in there too. If you haven't you need to add it

Original comment by DJG6...@gmail.com on 18 Mar 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Yes, of course.... I meant the only 2 added!

Obviously without that file it wouldn't work at all.

As I said all mods work if the admin is not renamed.

Renaming the admin stops MOST mods from working.

For example:
the file (vqmm_menu_shortcut.xml) works fine with or without renaming the admin 
folder, BUT,
the file (add_to_cart_go_to_cart_simple_checkout.xml) will work normally, but 
will BLOCK vqmod from functioning all together if the admin is renamed.

Original comment by win.the....@gmail.com on 18 Mar 2013 at 11:27

GoogleCodeExporter commented 9 years ago
This must be an issue with your server/setup as this works on windows, linux 
and osx (tested using vQmod 2.3.2 and OC 1.5.5.1)

Original comment by DJG6...@gmail.com on 21 Mar 2013 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by DJG6...@gmail.com on 21 Mar 2013 at 5:51

GoogleCodeExporter commented 9 years ago
Interesting...because I have tested it in 2 different installations. 1 windows 
and 1 linux.

Maybe I have misunderstood the  function...of the pathReplaces.php.
Do we still have to edit every xml file and change every admin instance in them 
to the new renamed_admin?

We could do with some documentation about it....I only checked it because I 
noticed the extra file in the directory.

Original comment by win.the....@gmail.com on 21 Mar 2013 at 6:38

GoogleCodeExporter commented 9 years ago
No the code you have in your first post is all that is needed in order to get 
the replacement to work. XML files can be left with name="admin/foo/bar.php" 
and it will still work as it dynamically replaces the text for the paths using 
a regular expression. This was the reason behind the file, to prevent the need 
to have to edit xml files when you add new ones etc and have decided to move 
your admin folder for example

Original comment by DJG6...@gmail.com on 21 Mar 2013 at 7:07

GoogleCodeExporter commented 9 years ago
Aha! I solved it!
There is a bug somewhere when upgrading from older version. My installations go 
all the way back to v1.15 and keep upgrading every time!
I did a clean install and it works!

Original comment by win.the....@gmail.com on 22 Mar 2013 at 12:14