Forums / Basic Configuration / Error after installing a mod

Error after installing a mod

Locked

Views: 2,881

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
5 Aug 2008, 8:10 AM
#1
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Error after installing a mod

Hi,

I've tried to install the out to date mod ship2pay. Unfortunatly I can't switch to the english language in the admin section now. The report I get is

Warning: require(includes/languages/english/header.php) [function.require]: failed to open stream: No such file or directory in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/header.php' (include_path='.:/usr/share/php:/usr/share/pear') in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Line 647 says
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . FILENAME_HEADER)

Can someone please help me. The header.php file is present, but I don't really understand the error.

Thank you tons in advance,

Juliet van Ree

Working on http://www.skull-shop.net once again.

5 Aug 2008, 8:25 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error after installing a mod

Was this module ONLY file based with no sql patch?

Or was there a sql patch that you also had to insert?

If a sql patch - Did you make a DB backup before attempting this install?

Zen-Venom Get Bitten

5 Aug 2008, 10:29 AM
#3
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

It was with a sql patch.... and stupid enough I did not make a db back up

This is the patch

CREATE TABLE ship2pay (
s2p_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
shipment VARCHAR( 100 ) NOT NULL ,
payments_allowed VARCHAR( 250 ) NOT NULL ,
status TINYINT NOT NULL
);

Working on http://www.skull-shop.net once again.

5 Aug 2008, 6:11 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error after installing a mod

Are you sure that this is all that you have altered?

If so, first delete each file that the mod included - noting if there was any "CORE" files overritten and if so you will need to replace these with ones from a downloaded default distribution.

Backup your DB before proceeding - - -

Then using your DB manager(phpmyadmin for many) find the ship2pay table and "DROP" /delete it.

If this is all that has been done this should square you away

Zen-Venom Get Bitten

5 Aug 2008, 8:42 PM
#5
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

Thank you for your help Kobra!!! I'll make sure to back up the db in the future!

I'm going to check out the solution tomorrow as it is pretty late on this side of the ocean. Thank you tons!!!

Working on http://www.skull-shop.net once again.

21 Aug 2008, 8:32 AM
#6
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

Sorry it took me a while to get back on this. Unfortunatly the error causing this wasn't resolved by dropping the table.

I had to keep two files that were overwritten because I think the maybe essential. The files:

  • /admin/includes/classes/payment.php
  • /admin/includes/classes/shipping.php

Can anyone tell me if this has anything to do with me not being able to call the english admin? The error I get is
Warning: require(includes/languages/english/header.php) [function.require]: failed to open stream: No such file or directory in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/header.php' (include_path='.:/usr/share/php:/usr/share/pear') in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Line 647 says
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . FILENAME_HEADER)

Working on http://www.skull-shop.net once again.

21 Aug 2008, 1:29 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error after installing a mod

It is not in the second file but where it begins -

includes/languages/english/header.php

Try replacing this file with a fresh one from an expanded distribution of the same version as you have loaded

Zen-Venom Get Bitten

21 Aug 2008, 1:35 PM
#8
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

Thank you Kobra, I'm going to try it straight away!

Working on http://www.skull-shop.net once again.

21 Aug 2008, 1:39 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error after installing a mod

After, it may spawn another error message - but tracking them one by one is where you are now...

Remember to do a backup of files and the DB in the future

Zen-Venom Get Bitten

21 Aug 2008, 1:45 PM
#10
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

Yes, I will never forget to make a back up again I think. Lol... well at least I gained a lesson from it!

Working on http://www.skull-shop.net once again.

21 Aug 2008, 2:06 PM
#11
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

I'm sorry Kobra and every one else reading, I succesfully replaced the english/header.php but still get this error (I think it's the same error)

Warning: require(includes/languages/english/header.php) [function.require]: failed to open stream: No such file or directory in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/header.php' (include_path='.:/usr/share/php:/usr/share/pear') in /www/htdocs/wwadmine/http/admin/includes/languages/english.php on line 647

Working on http://www.skull-shop.net once again.

21 Aug 2008, 5:53 PM
#12
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Error after installing a mod

Well I took a wild shot (after backing up the entire site and the db) and overwrit the english.php file. It worked !!!!!!!!!!!!!!!!!!!!!!! Now I have acces to the english admin again! (I don't know why the error occured because ship 2 pay didn't overwrite the english php file though)

Working on http://www.skull-shop.net once again.

24 Jan 2009, 7:31 PM
#13
pazaz avatar

pazaz

New Zenner

Join Date:
May 2007
Posts:
47
Plugin Contributions:
0

Re: Error after installing a mod

HI

I have just installed the ship2pay contrib but it doesnt appear to do anything. I click on insert (which doesnt have an icon) and it does nothing.

Dont know how to contact the guy who ported it from oscommerce to zen... any ideas?

rgds
Mick
Zen 1.3.8a

12 May 2010, 12:56 PM
#14
vko82 avatar

vko82

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: Error after installing a mod

@Pazaz:
I am investigating the same issue right now. I will share my results if I'll get any...

12 May 2010, 1:57 PM
#15
vko82 avatar

vko82

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: Error after installing a mod

The funny thing is, that this mod is using deprecated superglobals $HTTP_POST_VARS & $HTTP_GET_VARS instead of $_POST or $_GET.

Solution:

Open file <admin_folder>/ship2pay.php

Search and replace $HTTP_POST_VARS for $_POST
Search and replace $HTTP_GET_VARS for $_GET

This should make this mod somehow alive.
What needs further fixing is the usage of zen_image_submit and zen_image_button functions, which are called with wrong parameters.
I will need more time to fix this as well. Hopefully I will post one day complete, fixed ship2pay.php file.

Hope it helps to you as well.