Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
Havouza

500 error. This must be wrong

Question

Still struggling with my shop transfer and now I think I have found the problem.
The below is from an event log for today. The path to the files is from the OLD shop, not the NEW. Where do I define this? its probably done automatic when you install a shop and now get wrong.

 

*ERROR* 	2019/04/27 - 14:23:09: load error: failed to find /var/www/vhosts/jv74.se/httpdocs/modules/footercustom/views/css/front/less/default.less at line 1417 in file modules/footercustom/lessc.inc.php

 

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

The error comes from a non-standard module named

footercustom

You might want to try to uninstall this module properly.

Share this post


Link to post
Share on other sites
  • 0

No I dont think so. The path to the shop is Not var/www/vhosts/. That is from the old server and must be stored somewhere. The new path is /home/jv74/public_html. I need to find where to change

Share this post


Link to post
Share on other sites
  • 0

Can you open that module and change the path?

If not then you need to define proper path the old fashion way in the file

lessc.inc.php

Share this post


Link to post
Share on other sites
  • 0

line 1416-1417

        if (!is_readable($fname))
            throw new Exception('load error: failed to find '.$fname);

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

That path must be stored somewhere when youninstall. And there is no possibility to change it via the module. I checked in the working shop that we try to move

Edited by Havouza
More info

Share this post


Link to post
Share on other sites
  • 0

What if you reset your theme in modules admin? Sometimes this has messed up more than it has fixed for me personally. Yet on the other side of the coin hopefully you have a clone of your main site to test! @Havouza good luck!

Front office Features
Theme Configurator v3.0.8 - by thirty bees

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

My question is where the path in the variable is picked up from. If I can find that I think the problem is solved

This variable picks up the pathinfo somewhere

       $fname
         

 

Edited by Havouza

Share this post


Link to post
Share on other sites
  • 0

Just to clarify

$fname = pathinfo
 

Old shop it was /var/www/vhosts/jv74.se/httpdocs/
New shop is /home/admin_jv74/public_html/
But the new shop picks the old pathinfo somewhere. That is the problem which has to be solved

Share this post


Link to post
Share on other sites
  • 0
  • 0

yes i dumped all.
It is interesting because this will be a problem if you clone  somewthing to a new server where the path to the web will not be the same as the old one. But somewhere the info is stored. I start to belive it is stored in the db somewhere. I go through the config table now to see if I get lucky

Share this post


Link to post
Share on other sites
  • 0

Some of the developers must know where the pathinfo is stored

Share this post


Link to post
Share on other sites
  • 0

This is problem of this particular module, not thirtybees issue. Module saved some info somewhere, it has total autonomy in this area. Tb / prestashop has no way to intervene.

So, you need to look into module source code, or contact module developer.

Nobody can help you without access to the module code.

Share this post


Link to post
Share on other sites
  • 0

This shouldn't be so difficult. Just do a search for '%jv74.se%' in phpmyadmin in the whole database and do a text string for 'jv74.se' with Astrogrep in the whole shop. 

And you don't need the life shop for that. A working copy on you local computer (localhost) would do - as long as it doesn't contain a path with that string.

Share this post


Link to post
Share on other sites
  • 0

Well database has no hits and I have no windowscomputer, run linux so Astrogrep is no solution. But can I do the same search using only Grep via ssh? How?

Share this post


Link to post
Share on other sites
  • 0

I seldom use grep. So I would have to consult the manual. It will be faster if you do that yourself.

Share this post


Link to post
Share on other sites
  • 0

Well the answers via grep is confusing. But I will try another path and change the document root in the new apache to follow the old one

Share this post


Link to post
Share on other sites
  • 0

Hi!
That I did not do. The cache file for the footer has this line in it. Can this be the culprit?

;s:5:"files";a:2:{s:87:"/var/www/vhosts/jv74.se/httpdocs/modules/footercustom/views/css/front/less/default.less";i:1503588736;s:96:"/var/www/vhosts/jv74.se/httpdocs/modules/footercustom/views/css/front/less/variables-mixins.less";i:1503588736;}s:7:"updated";i:1556451505;}

Share this post


Link to post
Share on other sites
  • 0

Best thing to do is dump all the cache in this folder /themes/your_theme_name/cache manually

Also clear /cache/smarty/cache & /cache/smarty/compile manually

Then your browser cache and see if you still have error 500

 

Best

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...