Jump to content
Strider

Codeshare module V1.3

Recommended Posts

still continued receiving the same error friend. public_html/ava//admin/templates/codeshare/codeshare_index.php.tpl" doesn't exist in public_html/ava/core/classes/TemplateSet.class.php on line 248

Share this post


Link to post
Share on other sites

Make sure you remove the old module and upload the new. Or delete your cookies and refresh, as it could be going off a cached version.

Share this post


Link to post
Share on other sites

Hi idon't know what did i do wrong but i add schedule id from my database flight id number and i add airlines icao code but i get this error. i have phpVMS 5.5.2 Help please 

211179ea484c4c0f82f6a437658d724f.png

Share this post


Link to post
Share on other sites
17 minutes ago, OmerAslan said:

Hi idon't know what did i do wrong but i add schedule id from my database flight id number and i add airlines icao code but i get this error. i have phpVMS 5.5.2 Help please 

211179ea484c4c0f82f6a437658d724f.png

i fixed with add logo. If i leave that place empty then i get the error. On schedules list i can't see the image but it's minor problem for me.

Share this post


Link to post
Share on other sites
40 minutes ago, OmerAslan said:

i fixed with add logo. If i leave that place empty then i get the error. On schedules list i can't see the image but it's minor problem for me.

Deprecated: Non-static method CodeShareData::save_new_codeshare() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/erisair.com/crew/admin/modules/CodeShare_admin/CodeShare_admin.php on line 66

 

Share this post


Link to post
Share on other sites

 

4 hours ago, OmerAslan said:

Deprecated: Non-static method CodeShareData::save_new_codeshare() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/erisair.com/crew/admin/modules/CodeShare_admin/CodeShare_admin.php on line 66

 

What version of phpvms are you running? Did you download this version? It should have been fixed already.

Share this post


Link to post
Share on other sites
3 hours ago, web541 said:

 

What version of phpvms are you running? Did you download this version? It should have been fixed already.

Ok i upload this files. No error code but i can't add pictures. When i put logo adress not taking it. 

Share this post


Link to post
Share on other sites
17 minutes ago, OmerAslan said:

Ok i upload this files. No error code but i can't add pictures. When i put logo adress not taking it. 

Yeah that's an error, doesn't load it in, try this one.

  • Like 1

Share this post


Link to post
Share on other sites
Just now, OmerAslan said:

Now it's works. Thanks my friend.

Does everything work? (adding, editing, etc.) if so, I'll make a pull request to the master

Share this post


Link to post
Share on other sites
3 minutes ago, OmerAslan said:

When i click to book flight button says no route passed?

did it do that before? Check your browser console. Works for me on the crystal skin.

Share this post


Link to post
Share on other sites
7 minutes ago, OmerAslan said:

well i am using fbsv11 for the flight booking is it the reason?

It's nor reading bid id for some reason   www.domain/..../schedules/addbid?id=

Share this post


Link to post
Share on other sites
2 minutes ago, OmerAslan said:

It's nor reading bid id for some reason   www.domain/..../schedules/addbid?id=

That's different, open a new topic for this, but if you book through /index.php/codeshare then does it work?

Share this post


Link to post
Share on other sites
2 minutes ago, web541 said:

That's different, open a new topic for this, but if you book through /index.php/codeshare then does it work?

no also not working. i was booking flight before you made last changes. but not anymore...

Share this post


Link to post
Share on other sites
1 minute ago, OmerAslan said:

no also not working. i was booking flight before you made last changes. but not anymore...

Check your browser console for any errors first.

Ok, go download this version again,

https://github.com/Strider2/codeshare

To make the image url changes

And core/common/CodeShareData.class.php

Find this

$query = "INSERT INTO phpvms_codeshares (schedid, airline) VALUES ('$schedid', '$airline')";

Replace it with this

$query = "INSERT INTO phpvms_codeshares (schedid, airline, image) VALUES ('$schedid', '$airline', '$image')";

Find this

 $query = "UPDATE phpvms_codeshares SET
         schedid='$schedid',
         airline='$airline'
         WHERE id='$id'";

Replace it with this

 $query = "UPDATE phpvms_codeshares SET
         schedid='$schedid',
         airline='$airline',
	     image='$image',
         WHERE id='$id'";

Find this

public static function save_new_codeshare($schedid, $airline)

Replace it with this

public static function save_new_codeshare($schedid, $airline, $image)

Find this

public static function save_edit_codeshare($schedid, $airline, $id)

Replace it with this

public static function save_edit_codeshare($schedid, $airline, $id, $image)

Share this post


Link to post
Share on other sites
11 minutes ago, web541 said:

Check your browser console for any errors first.

Ok, go download this version again,

https://github.com/Strider2/codeshare

To make the image url changes

 

  Reveal hidden contents

 

And core/common/CodeShareData.class.php

Find this



$query = "INSERT INTO phpvms_codeshares (schedid, airline) VALUES ('$schedid', '$airline')";

Replace it with this



$query = "INSERT INTO phpvms_codeshares (schedid, airline, image) VALUES ('$schedid', '$airline', '$image')";

Find this



 $query = "UPDATE phpvms_codeshares SET
         schedid='$schedid',
         airline='$airline'
         WHERE id='$id'";

Replace it with this



 $query = "UPDATE phpvms_codeshares SET
         schedid='$schedid',
         airline='$airline',
	     image='$image',
         WHERE id='$id'";

Find this



public static function save_new_codeshare($schedid, $airline)

Replace it with this



public static function save_new_codeshare($schedid, $airline, $image)

Find this



public static function save_edit_codeshare($schedid, $airline, $id)

Replace it with this



public static function save_edit_codeshare($schedid, $airline, $id, $image)

 

 

When i click to add bid from regular hoes here : www...../....../schedules/addbid?id=8608 when i click book flight button from codeshare module takes me  www...../....../schedules/addbid?id=8608

Share this post


Link to post
Share on other sites

This is my error log

[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
[19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218

any luck?

Share this post


Link to post
Share on other sites

Those errors look to be comeong from somewhere else and not the codeshare module. Usually what causes the add to bid button to not work is a javascript file in the wrong place.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...