0
Welcome Guest! Login
0 items Join Now

Strict Standards: Only variables should be assigned by refer

  • Strict Standards: Only variables should be assigned by refer

    Posted 11 years 6 months ago
    • I developed a joomla site on url www.develop.breede.co.za and on there I have a PHP script for a call rates calulator that worked perfectly.

      I then moved the moved to www.breede.co.za and now the script works perfectly, but I get the following error:

      Strict Standards: Only variables should be assigned by reference in /usr/www/users/breedh/modules/mod_flexi_customcode/tmpl/default.php on line 25 Strict Standards: Non-static method modFlexiCustomCode::parsePHPviaFile() should not be called statically in /usr/www/users/breedh/modules/mod_flexi_customcode/tmpl/default.php on line 55

      What confuses me is, that it is the same server, just a different domain name.

      The code I use is:

      <p>Please type in a telephone number (local, mobile or international) to calculate the call cost. </p>
      <form id="lookupNumber" method="post" action="javascript:void(0);">
      <table class="table table-condensed">
      <tbody>
      <tr>
      <td><b>Telephone number:</b></td>
      <td><input type="text" name="number" id="number" maxlength="20" style="width: 15em;" value="">
      <input type="hidden" name="tariffs" value="breedenet"></td>
      </tr>
      <tr>
      <td></td>
      <td><input type="submit" name="action" class="btn btn-inverse" value="Search"></td>
      </tr>
      </tbody>
      </table>
      </form>

      <span class="table table-condensed table-striped" id="result">
      </span>

      <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=1.7.2'></script>

      <script type="text/javascript">
      $('#lookupNumber').submit(function() {
      var values = $(this).serialize();
      var request = $.ajax({
      url: "/callrates.php",
      type: "POST",
      data: values
      });
      request.done(function(msg) {
      $("#result").html( msg );
      });
      request.fail(function(jqXHR, textStatus) {
      alert( "Request failed: " + textStatus );
      });
      });
      </script>

      If anyone can help me with the error it will be much appreciated.

      The module is currently only available with login. So if you would like a login let me know.

      Thanks

      Christof
  • Re: Strict Standards: Only variables should be assigned by refer

    Posted 11 years 6 months ago
    • The issues must be within joomla when I transferred the website.

      The basic script works perfectly in plain non joomla file:
      breede.co.za/callrates.html
  • Re: Strict Standards: Only variables should be assigned by refer

    Posted 11 years 6 months ago
    • fixed it by chance. edited some code.

Time to create page: 0.052 seconds