Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No errors, no logs, successful install #3

Closed
sporkman opened this issue Sep 23, 2014 · 10 comments
Closed

No errors, no logs, successful install #3

sporkman opened this issue Sep 23, 2014 · 10 comments

Comments

@sporkman
Copy link

I'm not sure if this is the correct place for more support-related questions, so close if not appropriate...

I have no problems with vqmod on our own hosting, but we have some demo sites that run on Hostway.

My problem with both an older vqmod version and the latest is that while the install completes successfully (I can see the edits to /index.php and /admin/index.php), I don't see any edits being applied. The vqcache directory is empty as is the logs directory. I've tried with default perms (755, which works for things like opencart's own cache and image dirs) and with overly permissive (777) perms for vqcache and logs directories. I'm very confident all perms are correct at this point after going over things for a few hours and comparing to a working install.

Error display/logging is enabled in opencart, and not a single line logged/displayed.

Hostway does not seem to provide an actual apache error log, just an access log, but nothing of note there when fetching pages.

So my question is then how to debug when no errors are being logged?

@JAY6390
Copy link
Contributor

JAY6390 commented Sep 23, 2014

Hi Sporkman

Best guess, you've not given permissions for the /vqmod/ folder to allow write access. OpenCart doesn't actually always show errors even when it's set to. What you need to do is add the following just after the <?php on a new line in the /index.php file or /admin/index.php file

error_reporting(E_ALL);
ini_set('display_errors', 1);

and save. Then run the catalog or admin side depending on which you set the display errors for, and see if any errors show

Jay

@sporkman
Copy link
Author

Bizarre. Added the above, not a peep. I would imagine that even a stock opencart would throw a few notices here and there. Checked both admin and catalog, no errors in the browser.

vqmod dir is 755. Looking at /system/cache, I see that is also 755 and has recent files in it. Same UID for both directories. I'm totally stumped.

@JAY6390
Copy link
Contributor

JAY6390 commented Sep 23, 2014

@sporkman Very unusual. If 755 definitely works for the system cache then it will work for vqmod too as they both need the same write permissions. Ensure the following:

  • You have deleted mods.cache in /vqmod/
  • You have set /vqmod/ /vqmod/vqcache/ and /vqmod/logs/ to all have 755 permissions
  • You have /vqmod/xml/vqmod_opencart.xml in place and have permission to read it

This is almost certainly a permissions issue, especially if the exact same setup somewhere else is running just fine. If that doesn't fix it, I can debug this for you for a small fee if you wish. My e-mail address is in the vqmod.php file

Jay

@sporkman
Copy link
Author

Thanks for the help. One more thing of note, the mods.cache file is fresh - it appears to be a list of mods json-formatted. One peculiar thing I see here is the difference in file paths between "mods.cache" and "checked.cache".

In mods.cache my home directory path is shown as:
"/home/65/22/7202265/web/pcdo/admin/controller/common/header.php"

In checked.cache my home directory path is shown as:
"/home/vg000web05/65/22/7202265/web/pcdo/system/library/affiliate.php"

The OpenCart config uses the latter (which includes the "vg000web05" portion). Hmm. I'm going to see if opencart blows up if I remove that portion of the path, and see if phpinfo(); can give me some info about what my document root really is.

Update: Yep, homedir path change (removing the "vg000web05" path element) fixed everything. That is odd. Both are apparently valid paths however, as opencart works with either set in config.php and admin/config.php.

@JAY6390
Copy link
Contributor

JAY6390 commented Sep 23, 2014

Delete the checked.cache - it's safe to do so. The mods.cache is actually a serialized list of items, though similar to json

@qphoria
Copy link
Contributor

qphoria commented Sep 23, 2014

I've seen this a handful of times. Some how, the server has an aliased path
and a real path. If you add exit(getcwd()); to the config.php at the top
you'll see the"real path" which likely won't match the paths in your config
already. If you change the config paths to match the result of getcwd, then
vqmod should work.
On Sep 22, 2014 9:46 PM, "sporkman" notifications@github.com wrote:

Thanks for the help. One more thing of note, the mods.cache file is fresh

  • it appears to be a list of mods json-formatted. One peculiar thing I see
    here is the difference in file paths between "mods.cache" and
    "checked.cache".

In mods.cache my home directory path is shown as:
"/home/65/22/7202265/web/pcdo/admin/controller/common/header.php"

In checked.cache my home directory path is shown as:
"/home/vg000web05/65/22/7202265/web/pcdo/system/library/affiliate.php"

The OpenCart config uses the latter (which includes the "vg000web05"
portion). Hmm. I'm going to see if opencart blows up if I remove that
portion of the path, and see if phpinfo(); can give me some info about what
my document root really is.


Reply to this email directly or view it on GitHub
#3 (comment).

@sporkman
Copy link
Author

Can I suggest a few sentences for the troubleshooting section of the wiki?

vQmod appears to be installed correctly, but no modifications are being made, no errors are raised, and the vqcache directory is empty

  • Verify all permissions are correct as outlined above, and make sure the user the web server is running as is able to write to the /vqmod directory, the /vqmod/vqcache directory and the /vqmod/logs directories. Note that if you have recent cache files in the opencart /system/cache/ directory that should be a good reference for what permissions will work for vqmod.
  • Verify that the directory path you've specified in your opencart /config.php and /admin/config.php files match what PHP thinks your home directory path is. You can verify this by putting the line exit(getcwd()); at the top of your opencart config.php file - the full path returned by that page is the more correct path; set both of your opencart config files to reference that path, delete /vqmod/mods.cache and check to see if that resolves the issue.

@JAY6390
Copy link
Contributor

JAY6390 commented Sep 23, 2014

@sporkman - Does this mean you've solved this? A path being aliased shouldn't affect things, as vQmod runs all paths through realpath

@qphoria
Copy link
Contributor

qphoria commented Sep 23, 2014

That's just not how it works in these cases. I've seen it quite a few times
now with these certain servers. Not sure it is aliased or some sort of
caching they do at the host level, and not sure why opencart install
doesn't find the same path, but this is usually the fix. I find that on
these servers, direct changes to files don't get propagated right away
either unless you change the path in the config.
On Sep 23, 2014 7:26 AM, "JAY6390" notifications@github.com wrote:

@sporkman https://github.com/sporkman - Does this mean you've solved
this? A path being aliased shouldn't affect things, as vQmod runs all paths
through realpath http://php.net/realpath


Reply to this email directly or view it on GitHub
#3 (comment).

@JAY6390 JAY6390 closed this as completed Sep 25, 2014
@varsha63
Copy link

i am new here but i ask you one thing before so come here again pls guide me for this error

on website vqmod success msg i already got but its not fetching vqmod/xml files

when i click edit on module i got this error 👍

Fatal error: Class 'ControllerModuleselleraccount' not found in /home/vikas140/public_html/admin/controller/extension/module.php on line 123

whats does this error means and how can i solve this . pls suggest something

pls ans asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants