Errors on production Working at localhost

Errors on production Working at localhost

mvitalmvital Posts: 8Questions: 0Answers: 0
edited August 2013 in Editor
Hi

can soembody help me with this issue.
im worked with my test server at localhost using xaamp and it works without any problem. Now i transfer all the files to my production server and i get the following error:

http://stopecas.info/marcas.html you can see it here!

any help will be apreciated.

best regards,
Mario Vital

Replies

  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    Your php file that returns the JSON is faulty.

    http://stopecas.info/php/table.marcas.php returns:

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/lujow897/public_html/stopecas.info/php/table.marcas.php on line 13
  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    Very likely that means your server is running PHP < 5.3. The Editor libraries require 5.3 or newer.

    Allan
  • mvitalmvital Posts: 8Questions: 0Answers: 0
    right allan , my production server is running php 5.2.7 :/
    just ask to my provider to update !

    thz allan and aaronw !
  • mvitalmvital Posts: 8Questions: 0Answers: 0
    hi aaronw

    i really cant find where is the error !!

    [code]
    <?php

    /*
    * Editor server script for DB table marcas
    * Automatically generated by http://editor.datatables.net/generator
    */

    // DataTables PHP library
    include( "lib/DataTables.php" );

    // Alias Editor classes so they are easy to use
    use
    DataTables\Editor,
    DataTables\Editor\Field,
    DataTables\Editor\Format,
    DataTables\Editor\Join,
    DataTables\Editor\Validate;


    // Build our Editor instance and process the data coming from _POST
    Editor::inst( $db, 'marcas' )
    ->fields(
    Field::inst( 'id_marca' ),
    Field::inst( 'marca' )
    )
    ->process( $_POST )
    ->json();
    [/code]

    here is the file that is returning this issue !

    best regards,
    Mario VItal
  • mvitalmvital Posts: 8Questions: 0Answers: 0
    cant see where is the error !??!
    here is the code file table.marcas.php

    [code]
    <?php

    /*
    * Editor server script for DB table marcas
    * Automatically generated by http://editor.datatables.net/generator
    */

    // DataTables PHP library
    include( "lib/DataTables.php" );

    // Alias Editor classes so they are easy to use
    use
    DataTables\Editor,
    DataTables\Editor\Field,
    DataTables\Editor\Format,
    DataTables\Editor\Join,
    DataTables\Editor\Validate;


    // Build our Editor instance and process the data coming from _POST
    Editor::inst( $db, 'marcas' )
    ->fields(
    Field::inst( 'id_marca' ),
    Field::inst( 'marca' )
    )
    ->process( $_POST )
    ->json();
    [/code]

    any clue ?!?

    Regards,
    Mario
This discussion has been closed.