Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35
  1. #31
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: 500 server error when upgraded to php 5.6

    Excel/reader.php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #32
    Join Date
    Feb 2016
    Location
    Colorado
    Posts
    34
    Plugin Contributions
    0

    Default Re: 500 server error when upgraded to php 5.6

    Quote Originally Posted by mc12345678 View Post
    Excel/reader.php
    Sorry. Here it is.
    Attached Files Attached Files

  3. #33
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: 500 server error when upgraded to php 5.6

    Quote Originally Posted by mc12345678 View Post
    Okay, then there is a way to reference the information associated without actually typing it in and becoming more of a security risk. Have a few things to add to the files included/required to minimize the potential of the files being called/used by something outside of ZC. Will be a bit before can post it, but with regards to the Excel/reader.php file it may also reference other files that didn't make it to your new install. Look for include(, include_once(, require(, or require_once( type statements.
    Quote Originally Posted by hp09 View Post
    Thanks for your help.
    I checked for other require or include files, but didn't find anything else.
    Quote Originally Posted by hp09 View Post
    Sorry. Here it is.
    So, took a quick look through the file. Although stated above that there were no other require/include related files, I have found that Excel/reader.php has the following:
    Code:
    require_once 'oleread.inc';
    So, did that file get transferred and what is its contents?
    I also found a few other places that needed to have global variables applied in the original revision. Will post that revised version later. Also found a minor change for Excel/reader.php for it to support PHP 7.0 and maintain compatibility with PHP 5.3+. There may also be an issue with the encoding supported on your host as in Excel/reader.php there is a line: $this->setUTFEncoder('iconv'); that is choosing to use iconv for conversation instead of mb (mb_convert_encoding related function). I'm not specifically familiar with either, but it is a choice that is coded into the program and the option(s) do relate to supported server options.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #34
    Join Date
    Feb 2016
    Location
    Colorado
    Posts
    34
    Plugin Contributions
    0

    Default Re: 500 server error when upgraded to php 5.6

    Thanks again for all your help. Sorry that I've been offline for a few days. We've been moving and it took longer than expected. The file oleread.inc is on the server in the Excel directory with the reader.php file. It's attached.
    Attached Files Attached Files

  5. #35
    Join Date
    Feb 2016
    Location
    Colorado
    Posts
    34
    Plugin Contributions
    0

    Default Re: 500 server error when upgraded to php 5.6

    My problem is still the error:
    "File type is not recognized! Please try again with a valid excel file."
    Line 213 in icindex.php

    Using a .xls file attached.
    Attached Files Attached Files

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v139d 500 server error on custom plugin when upgraded beyond PHP 5.3
    By hp09 in forum General Questions
    Replies: 2
    Last Post: 16 Feb 2016, 12:18 AM
  2. v151 500 Internal Server Error when installing
    By WorldOfMine in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 8 Oct 2015, 07:03 AM
  3. trouble moving site - php error 500 server error
    By gregorw in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Mar 2012, 05:50 PM
  4. Replies: 2
    Last Post: 11 Nov 2009, 12:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR