Page 1 of 1

vqmod error vqmod/vqcache/vq2-system_startup.php on line 73

Posted: Sat Nov 12, 2011 3:08 pm
by skyknight
I have install vqmod (vqmod-2.1.5-opencart) and vqmod manager.
And it work, but when i try to uninstall, delete, upload new vqmod xml from vqmod manager i got this error:

Code: Select all

Notice: Undefined variable: vqmod in /home/xxxx/public_html/oc/vqmod/vqcache/vq2-system_startup.php on line 73

Fatal error: Call to a member function modCheck() on a non-object in /home/xxxx/public_html/oc/vqmod/vqcache/vq2-system_startup.php on line 73
this is code from line 73

Code: Select all

require_once($vqmod->modCheck(DIR_SYSTEM . 'helper/json.php')); 
I try to add this code before line 73

Code: Select all

// VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
And it worked, my VQMOD can uninstall, delete, and upload new vqmod xml.

But after VQMODE Manager refresh, vq2-system_startup.php back to original, without my modified code.

Any idea what is going on?

Thank You,

Kurniawan

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Sat Nov 12, 2011 10:56 pm
by Qphoria
Sounds like the code is not added correctly in the index.php file
If it was in the index.php you wouldn't need it in the startup.php
Did you install vQmod using the autoinstaller?

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Sun Nov 13, 2011 12:04 am
by skyknight
sorry my mistake, i have try on fresh installation and success.

My previous install using custom path on config.php

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Mon Dec 12, 2011 9:41 pm
by mmkvn
I receive the exact message like that:

Notice: Undefined variable: vqmod in /home/xxxxxxxxxxx/domains/xxxxxxxxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 73

Fatal error: Call to a member function modCheck() on a non-object in /home/xxxxxxxxx/domains/xxxxxxxxxxxx/public_html/vqmod/vqcache/vq2-system_startup.php on line 73


So what is the reason and your solution, Skyknight?

Anyone can help me?

Thanks

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Jan 03, 2013 5:26 am
by kyuss
I just upgraded to v2.2.1, now I'm having this exact problem.

I've gone through all the steps in the install, including total delete and autoinstall (it told me vqmod was already installed). I've checked that the index.php and admin/index.php are both 755 (my entire directory structure is), and that those two files include the proper vqmod code blocks as described in the manual install.

I don't get it, it worked fine before the upgrade. Can someone elaborate on a fix please?

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Jan 03, 2013 5:37 am
by victorj
vqmod/cache and vqmod/logs should have all permissions set to 777 read/write since all modifications are made there so vqmod needs total access

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Jan 03, 2013 8:27 am
by kyuss
I was dabbling with 777 permission on all files earlier, nothing worked. Just tried again, no luck. I'm baffled, can't help but wonder if I downgrade will it still not work? I don't know what changed, I just uploaded the files and that feature stopped working. :(

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Fri Jan 04, 2013 3:11 am
by michal.franek
I am having same problem as all here.
i try to change permitons also try to reinstal also try to add code as someone wrote here and same result.
can anybody advice what to do.thanks

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Jan 17, 2013 5:38 am
by ashtray
add to
htaccess

AddHandler php53-script .php

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Tue Jan 22, 2013 6:41 am
by kyuss
ashtray wrote:add to
htaccess
AddHandler php53-script .php
Tried this, it just makes every page of my site serve up the original file for download (terrible security issue, make sure you don't test this on a live site!!).

I just reinstalled OC in a new folder, then installed vqmod fresh, checked permissions, etc. Same problems.

My host doesn't allow using 777 on admin/config files (500 Internal Server Error), so I had to back down to 755, but then vqmod gives an error that the "Administrator index.php is not writable"

I finally edited the files manually, but I can't help but wonder if vqmod is working properly. I still can't install/uninstall from the admin, and this is a nice fresh OC/vqmod v2.2.2.

For what it's worth.

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Wed Mar 06, 2013 11:16 pm
by Felias
Just did a brand-new installation and followed the installation procedures, but i'm also getting:

Code: Select all

index.php not writeable
Administrator index.php not writeable
The whole vqmod subdirectory is set to 777, but it still gives this error.

EDIT:
just solved it: It's the shops standard index.php and admin/index.php, NOT the ones inside the vqmod-folder. That hint would help a lot in the readme :)

Best wishes,
Nic

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Apr 03, 2014 11:22 pm
by LuckyBhumkar
I'd faced same problem. But I solved it successfully. ;D

I encountered the following message on homepage.

Code: Select all

Notice: Undefined variable: vqmod in /home/username/public_html/vqmod/vqcache/vq2-system_startup.php on line 77

Fatal error: Call to a member function modCheck() on a non-object in /home/username/public_html/vqmod/vqcache/vq2-system_startup.php on line 77
Solution

1. Download the latest version of VQMod from https://code.google.com/p/vqmod/downloads/list
2. Upload the downloaded ZIP file to public_html folder
3. Extract it in same path (=public_html)
4. Now check your home page

Done..! :crazy:

Re: vqmod error vqmod/vqcache/vq2-system_startup.php on line

Posted: Thu Aug 07, 2014 6:25 pm
by comprido
Yeah! Nice, solve it ;D