Post by craig100 » Mon Mar 14, 2011 9:34 pm

OK so I thought I'd still see what vQmod could do for me anyway. So installed and have it's log show it's been initiated correctly. So the first try won't work (only showing the pertinent bits):-

Code: Select all

<modification>
	<id>Change Header Items</id>
	<version>1.0.0</version>
	<vqmver>1.0.8</vqmver>
	<author>Craig</author>
	<file name="catalog/controller/common/header.php">
		<operation error="skip">
			<search position="replace">
			$this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
			</search>
			<add>
                            $this->data['shop'] = 'http://shop.fabtours';
                            If (stristr($_SERVER['HTTP_HOST'],'shop') === false) {
                                $this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
                            } else {
                                $this->data['home'] = 'http://fabtours';
                            }
			</add>
		</operation>
	</file>
</modification>
Am I being too ambitious or should this work?
[/quote]

Yes that looks like it should work. Does the log show it making those modifications to that file?
Incidentally, for OpenCart I found the installation instructions incorrect. I had to modify the:-

require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();

To:-

require_once('vqmod/vqmod.php');
$vqmod = new VQMod('vqmod', TRUE);

Would this be expected? I'm fairly new to PHP.

Cheers,

Craig
No that is wrong. That is the OLD way.. as of 1.0.8 you should not be using that as that is deprecated.

Newbie

Posts

Joined
Mon Feb 28, 2011 7:50 pm

Post by craig100 » Mon Mar 14, 2011 10:41 pm

OK, reverted to ./vqmod.....etc. and now working (which it didn't before!).

No it didn't show the xml file running. Found this was fixed by putting in the /xml directory (not mentioned in the instructions, though fairly obvious when you think about it I know.) Now see the file running in the log, however, still not working. The code ran fine when it was hardcoded into the header.php controller file. Ah, found an earlier line I'd forgotten about in the header file.

!!Now working, love it;)!!

Thanks for your help.

Craig

Newbie

Posts

Joined
Mon Feb 28, 2011 7:50 pm

Post by Simplicity » Sat Mar 19, 2011 11:47 pm

Is it OK that VQMod doesn't work on WAMP sever? I followed simple steps in opencart_install.txt file, but all what I get is:
( ! ) Warning: mkdir() [function.mkdir]: File exists in D:\web tools\wamp\www\opencart\vqmod.php on line 165

Is it because of space in path (marked bold).
Last edited by Simplicity on Sun Mar 20, 2011 12:11 am, edited 2 times in total.

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by Qphoria » Sat Mar 19, 2011 11:53 pm

That isn't the problem exactly. The directory exists check is just failing so it is trying to make the directory. Not sure why the directory exists is failing tho since the directory obviously exists. But you can remove this code from the vqmod.php file:

1. EDIT: vqmod.php

2. FIND AND REMOVE (~line 164):

Code: Select all

if (!file_exists($this->cwd . '/vqmod')) {
        if (!mkdir($path)) {
		die('VQMOD: Could not create ' . $path . ' directory. Ensure the root is writable or create manually');
	}
}

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Simplicity » Sun Mar 20, 2011 12:26 am

Oh, you're fast, managed to answer before I've edited my message so I have to add another question. ;D

It doesn't work on my web server either. Maybe it's the way how I'm extracting files.
To be clear, here's my OC file structure:

http://www.example/opencart
http://www.example/opencart/config.php
http://www.example/opencart/index.php
http://www.example/opencart/php.ini
http://www.example/opencart/admin
http://www.example/opencart/catalog
http://www.example/opencart/download
http://www.example/opencart/image
http://www.example/opencart/install
http://www.example/opencart/system

Path in VirtualQMod_v1.0.8.zip is /upload/vqmod
http://www.example/opencart/vqmod
http://www.example/opencart/vqmod/vqmod.php
http://www.example/opencart/vqmod/vqcache
http://www.example/opencart/vqmod/xml

Errors I get:
Warning: require_once(./vqmod.php) [function.require-once]: failed to open stream: No such file or directory in .../public_html/opencart/index.php on line 28

Fatal error: require_once() [function.require]: Failed opening required './vqmod.php' (include_path='.:/usr/local/lib/php') in .../public_html/opencart/index.php on line 28

index.php on line 28:
require_once('./vqmod.php');

Maybe I should extract it in this way:
http://www.example/opencart/
http://www.example/opencart/vqmod.php
http://www.example/opencart/vqcache
http://www.example/opencart/xml
?

Something tells me that it needs to be this way, but I'm not sure:
http://www.example/opencart/vqmod.php
http://www.example/opencart/vqmod
http://www.example/opencart/vqmod/vqcache
http://www.example/opencart/vqmod/xml

Actually, I tried that, but after vqmod creates vqmod dir in root, I can't create files and folders in there manually (permission denied)

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by Simplicity » Sun Mar 20, 2011 12:40 am

Stuck with this:
Warning: Invalid argument supplied for foreach() in .../public_html/opencart/vqmod.php on line 175
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .../public_html/opencart/vqmod.php:175) in .../public_html/opencart/system/library/session.php on line 11

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by Qphoria » Sun Mar 20, 2011 12:46 am

Simplicity wrote: Errors I get:
Warning: require_once(./vqmod.php) [function.require-once]: failed to open stream: No such file or directory in .../public_html/opencart/index.php on line 28

index.php on line 28:
require_once('./vqmod.php');
Where are you getting your readme steps?

This is the OLD way:

Code: Select all

require_once('./vqmod.php');
The latest version has:

Code: Select all

require_once('./vqmod/vqmod.php');
Put the vqmod.php back inside the vqmod folder

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Simplicity » Sun Mar 20, 2011 1:22 am

Qphoria wrote: Where are you getting your readme steps?
Ok, it looks like my mistake. I went to http://vqmod.com/ and downloaded this archive http://vqmod.com/media/download/opencar ... d_core.zip There's install.txt inside... On line 33 it says:
4. REPLACE WITH:
-----------
//VirtualQMOD
require_once('./vqmod.php');
$vqmod = new VQMod('./vqmod', TRUE);
...

I think I got lost between different files in notepad++

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by Qphoria » Sun Mar 20, 2011 1:29 am

Ah.. yea. that needs to be updated.. the one in the main zip is all you need

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Simplicity » Sun Mar 20, 2011 1:45 am

It looks like it's working now locally and on web server.
Couldn't find any information about file and folder permissions in read me files. 777 for folder vqmod, vqcache and 755 for xml, right?

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by Xsecrets » Sun Mar 20, 2011 2:05 am

Simplicity wrote:It looks like it's working now locally and on web server.
Couldn't find any information about file and folder permissions in read me files. 777 for folder vqmod, vqcache and 755 for xml, right?
well it's going to depend on your hosting setup. If you are using either a proper suphp or cgi setup (which good webhosts will be) 755 will work for everything, otherwise what you said is correct.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Simplicity » Sun Mar 20, 2011 2:19 am

Xsecrets wrote:
Simplicity wrote:It looks like it's working now locally and on web server.
Couldn't find any information about file and folder permissions in read me files. 777 for folder vqmod, vqcache and 755 for xml, right?
well it's going to depend on your hosting setup. If you are using either a proper suphp or cgi setup (which good webhosts will be) 755 will work for everything, otherwise what you said is correct.
So my host isn't proper because vqmod doesn't work if set to 755.

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by ritey » Mon Mar 28, 2011 6:16 pm

I've just checked my error log because I noticed Google caching some pages with a vQmod related error.

All related to session_start()

Cannot send session cookie
Cannot send session cache limiter
Cannot send session cookie
Cannot send session cache limiter

Permissions look fine, cache mode is true and when I browse the site it doesn't come up so I'm guessing it's due to volume of traffic?

Any suggestions...

Dave
www.coderstudios.com


User avatar
Active Member

Posts

Joined
Fri Jan 22, 2010 4:28 am
Location - Richmond

Post by JAY6390 » Mon Mar 28, 2011 6:26 pm

sounds like it's outputting some data before the session_start() code...which suggests there's extra whitespace or an error somewhere

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by ritey » Mon Mar 28, 2011 7:29 pm

Yeah there are echo statements in the vQmod file and the errors state these lines, but it doesn't happen all the time, seems to be when there is a lot of traffic. Again like the file writing problem (i've already updated the code to make sure it's not using fopen.)

Dave
www.coderstudios.com


User avatar
Active Member

Posts

Joined
Fri Jan 22, 2010 4:28 am
Location - Richmond

Post by reynierpm » Wed Mar 30, 2011 1:59 am

Hi:
Recently I move the entire OC to a new folder and now I'm getting this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/libroria/public_html/vqmod/vqmod.php:756) in /home/libroria/public_html/index.php on line 179Warning: Cannot modify header information - headers already sent by (output started at /home/libroria/public_html/vqmod/vqmod.php:756) in /home/libroria/public_html/system/library/currency.php on line 45
this is due to permissions in that folders or what?

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by spoon » Wed Mar 30, 2011 11:15 am

vQmod is officially awesome. Thanks.

User avatar
Newbie

Posts

Joined
Mon Dec 14, 2009 11:47 am

Post by Brook » Wed Apr 13, 2011 11:29 pm

I have OpenCart v1.4.9.4 installed with vQmod 1.0.8

Has anyone run into these errors? Does anyone have a fix for the errors below?
These error do not happen every time, just randomly but at least once a day.

When I click "Save" when editing a Product on Admin website
My browser displays message, nothing is written to my Admin->Error Log

Code: Select all

Fatal error: Class 'Language' not found in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/admin/index.php on line 123
If I refresh my browser the error message goes away

When I login to my Admin website, on the click of the Login button
My browser displays message, nothing is written to my Admin->Error Log

Code: Select all

Fatal error: Class 'Controller' not found in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/vqmod/vqcache/vqcache_admin_controller_common_home.php on line 2
If I refresh my browser the error message goes away

When I click "Save" after selecting to copy Admin-Product->Product Options Tab via "batch options"

Code: Select all

Fatal error: Class 'Loader' not found in /homepages/15/d244334450/htdocs/websites/prod_region/retail/oc149_shopcelebrity/admin/index.php on line 31
If I refresh my browser the error message goes away


Any suggestions for a fix?

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by ritey » Thu Apr 14, 2011 8:49 pm

I get these too on occassion

Dave
www.coderstudios.com


User avatar
Active Member

Posts

Joined
Fri Jan 22, 2010 4:28 am
Location - Richmond

Post by Qphoria » Thu Apr 14, 2011 9:08 pm

Never heard of this before

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 12 guests