Jump to content

Recommended Posts

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

Posted
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

 

Posted

 

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.

Posted
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. 

Posted
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?

Posted
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...

Posted
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)

Posted
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

Posted

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?

Posted

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.

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...