Jump to content

Codeshare module V2.3


Strider

Recommended Posts

  • 1 month later...
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.

Link to comment
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

 

Link to comment
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.

Link to comment
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)

Link to comment
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

Link to comment
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?

Link to comment
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...