Post by DrM » Wed May 01, 2013 9:01 pm

Hi everyone,

I got vQmod 2.3.2 to install successfully on a fresh install of opencart 1.5.5.1 with a renamed admin folder, according to the success message.

But I think I am missing a vital step, as my vqcache folder remains empty. I have searched the forums and Google but cannot find a fix that works.

Here is what I did:
1) Installed opencart 1.5.5.1
2) Renamed the admin folder and updated all instances in admin/config.php
At this stage everything works fine.

3) Uploaded vQmod 2.3.2 opencart
4) Set permissions for vqmod/vqcache, admin/index.php, and index.php to 755
5) Edited the vqmod/install/index.php folder to the new name on lines 50 and 86:

if(!is_writeable($opencart_path . 'mynewadminname/index.php')) {
$write_errors[] = 'Administrator index.php not writeable';
}

// Rename the admin part of the text below if you've
// changed your admin folder name
$u->addFile('mynewadminname/index.php');

6) Edited the vqmod/pathReplaces.php with my new admin name:

$replaces[] = array('~^admin\b~', 'mynewadminname');

7) Edited the vqmod/vqmod.php – line 54 – changed ‘include_once’ to ‘include’:

if($replacesPath) {
include($replacesPath);
$this->_lastModifiedTime = filemtime($replacesPath);
}

8) Opened in browser: mywebsite/vqmod/install
At this stage I got the success message and my store homepage seems fine.

But when I check my vqmod/vqcache folder it is empty?
Could somebody please advise me on how to make this work?

Thanks,

Dr M

User avatar
DrM
Newbie

Posts

Joined
Fri Mar 22, 2013 11:57 pm

Post by daik01 » Thu May 02, 2013 5:48 pm

Did you have an extension xml in your xml folder, besides vqmod_opencart.xml?
Otherwise, there will be no changes, and there will be no caching of changes...

TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP


Active Member

Posts

Joined
Sun Oct 21, 2012 3:18 am


Post by rph » Thu May 02, 2013 8:08 pm

Don't modify the vqmod core file. The only thing that has to be updated is pathReplaces.php. There's also no need to mess with the installation file. All you need to do to install is rename /mynewadminname back to /admin, run the installation, change the name back, then set up pathReplaces.php.

To fix all this:
1) Restore vqmod core files
2) Restore original /admin/index.php (and possibly /index.php)
3) Rename /mynewadminname to /admin
4) Ensure proper permissions on files
5) Run the vqmod installer
6) Rename /admin back to /mynewadminname
7) Update /vqmod/pathReplaces.php

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by DrM » Fri May 03, 2013 6:55 pm

Thanks for your help and patience. What I didn't understand was step 7 of the vQmod auto-installer instructions on their website which states:

"Using FTP, verify that there are new "vq" files in the "vqmod/vqcache" folder."

From what you are saying daik01, I gather that on a fresh install of opencart, with only the vQmod extension added on, then there won't be anything in the vqcache folder because there are no other extension xml files. (I then added the vQmod Manager extension and it worked fine and the changes were recorded in my vqcache folder).

I decided to install vQmod on my fresh install of opencart before changing the admin folder name (sort of like the reset instructions provided by rph - thanks).

So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?

Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?

Thanks again for your help, it's greatly appreciated!

User avatar
DrM
Newbie

Posts

Joined
Fri Mar 22, 2013 11:57 pm

Post by labeshops » Fri May 03, 2013 7:28 pm

honestly, I didn't know about the pathreplaces.php file until reading your post - that must be new to the latest vqmod that I updated to the other day. I just search and replace admin/ for my renameddirectory/ in every xml file before copying it into the xml directory.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by DrM » Fri May 03, 2013 8:02 pm

Yea that's what I read that everyone was doing who wasn't using the new version of vqmod. At least I am more aware now of different options to get everything working. It's a bit of a steep learning curve, but I'm getting there!

The last thing I need to figure out is which files need their permissions changing back after vqmod has been installed?
When I search on this topic it only discusses the changes that need to be made PRE-installation. I'm guessing that all the vqmod files are to be left with their normal permissions, and the index.php and admin/index.php are to be changed back to 644?

User avatar
DrM
Newbie

Posts

Joined
Fri Mar 22, 2013 11:57 pm

Post by rph » Sun May 05, 2013 3:44 pm

DrM wrote:So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?
Only pathReplaces.php.
Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
You can do it if you want, but why? You're much more likely to upgrade your vqmod version than your OpenCart installation so keeping a custom installer around isn't hugely useful. Plus the admin rename method is fast and simple for novices compared to code editing.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by DrM » Sun May 05, 2013 4:36 pm

rph wrote:
DrM wrote:So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?
Only pathReplaces.php.
Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
You can do it if you want, but why? You're much more likely to upgrade your vqmod version than your OpenCart installation so keeping a custom installer around isn't hugely useful. Plus the admin rename method is fast and simple for novices compared to code editing.
You have made everything clear to me now and it is all working fine! Thank you so much!

User avatar
DrM
Newbie

Posts

Joined
Fri Mar 22, 2013 11:57 pm

Post by futureclient » Wed May 22, 2013 7:45 pm

Hey,

Thank you very much for this, had a feeling dread when it all broke down, makes perfect sense. Everyday is a school day! 8)

Newbie

Posts

Joined
Mon Jan 09, 2012 10:09 pm

Post by Qphoria » Thu May 23, 2013 1:38 am

DrM wrote: Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
That is what we used to say before adding this new pathReplaced.php option.. We will update the wiki on the vqmod site

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by winter » Sat May 25, 2013 11:37 pm

I'm about to install the vQmod but have seen so may posts about this. Is it a nightmare to do or is it fairly easy? Just spent a lot of time updating my store and would hate for this to pear shaped :?

New member

Posts

Joined
Wed May 16, 2012 6:10 pm

Post by Qphoria » Tue Jun 04, 2013 12:46 am

If it takes you longer than 1 min to install vQmod.... you should be banned from the internet :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by winter » Sat Jun 08, 2013 4:38 am

Lol - ok than. I'll take that as a no. Its just that I have seen so many posts querying this so....

Has the vQmod installer list been updated Qphoria?

And must this be installed to use Yahoo media player do you know?

I desperately need a media player for my site....

New member

Posts

Joined
Wed May 16, 2012 6:10 pm
Who is online

Users browsing this forum: No registered users and 4 guests