WordPress.org

Ready to get started?Download WordPress

Forums

EZ Staff List
[resolved] Fatal error: Class 'table' not found in (22 posts)

  1. dezius
    Member
    Posted 2 years ago #

    I have some problems with EZ Staff list plugin.

    I'am reinstall plugin (after deleting plugin) and i get some errors on [staff_list] page and everythere on wp-admin>Staff mgt

    1. On [staff_list] page i see this error:

    Fatal error: Class 'table' not found in /home/administr/domains/administravimas.lt/public_html/wp-content/plugins/ez-staff-list/plugins/staff_management.class.php on line 287

    2. On wp-admin page I see this error:

    Staff mgt
    Fatal error: Call to undefined function xml_transform() in /home/administr/domains/administravimas.lt/public_html/wp-content/plugins/ez-staff-list/framework/core/structure/objects/element.class.php on line 140

    Add staff
    Fatal error: Class 'form' not found in /home/administr/domains/administravimas.lt/public_html/wp-content/plugins/ez-staff-list/plugins/staff_management.class.php on line 119

    Staff members
    Fatal error: Class 'rs_list' not found in /home/administr/domains/administravimas.lt/public_html/wp-content/plugins/ez-staff-list/plugins/staff_management.class.php on line 190

    That's the problem?

    http://wordpress.org/extend/plugins/ez-staff-list/

  2. Kwayy Infotech
    Member
    Posted 2 years ago #

    I am also getting same error. please help.

  3. Luke
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry guys for the delay... I sure wish I would get an email notification when someone makes a comment on my plugin...

    Anyway, see this video here: http://screencast.com/t/GSwMC2Rt

    Luke

  4. Luke
    Member
    Plugin Author

    Posted 2 years ago #

    I just found where I can subscribe for the ez-staff-list tag :) LOL

  5. verlierer
    Member
    Posted 2 years ago #

    Same problem for me. Lucas's screencast isn't loading for me. What did it say??

  6. verlierer
    Member
    Posted 2 years ago #

    Okay. I haven't fixed this, yet but think I've figured out the problem. For me I started getting the above error after migrating to a new server.
    The include that was failing was in the following condition in phplitefw.inc.php:

    // If proper extensions are loaded, load XML transformation plugin and record set list class
    		if ($this->xml_ext_loaded) {
    			echo ' YES, xml extension is loaded ';
    			if ($this->mode == 'litefw') {
    				$this->load_plugin('xml_transform');
    				include_once("$this->frame_path/core/structure/objects/rs_list.class.php");
    				include_once("$this->frame_path/core/structure/objects/table.class.php");
    			}
    		}

    So, apparently the new server doesn't have those extensions.

  7. Luke
    Member
    Plugin Author

    Posted 2 years ago #

    verlierer,

    Yes, you would be right.. most likely your new server does not have DOM XML or XSLT processor extensions enabled.

    My screencast basically mentioned to look for common files which are supposed to be there..

    Nearly all PHP 5.3 + installs come with both of those enabled already. I run this framework on several different OS as well including CentOS, Fedora, Mac OSX, etc.

    I assume you are on a shared hosting environment? Your hosting provider should not have any problem enabling those extensions for you.

    Luke

  8. Jason
    Member
    Posted 2 years ago #

    On Debian I was able to fix the error, from the root console on the server, with:

    apt-get -y install php5-xsl && /etc/init.d/apache2 restart

  9. ukarmakar
    Member
    Posted 1 year ago #

    Guys I have another problem, but thought my problem may relates to the above problem, when I upload the plugin and activate it, I can see the Add Staff form and Staff Members is showing good and working properly. But after one or two day when I check back both the screens are scattered. Even I can't find the buttons. When I view the source of the Add Staff form I can see they are not rendered properly. It looks something like...

    <form name="" action="/perfecttouch/wp-admin/admin.php?page=edit_staff_member.php" method="post"><data><headers>
    </headers>
    <button_cell_attrs>
    </button_cell_attrs>
    <button><![CDATA[Submit]]></button>
    <columns>2</columns>
    <hidden_elements>
    	<data_1_0><input type="hidden" name="staff_id" value="" />
    </data_1_0>
    	<data_1_1><input type="hidden" name="action" value="update-staff-member" />
    </data_1_1>
    </hidden_elements>
    <elements><row><form_element colspan="1"><label>First Name</label>
    
    </form_element>
    <form_element colspan="1"><input type="text" name="staff_first_name" value="" size="20" />
    </form_element>
    </row>

    But if I upload the plugin again, everything is fine. Please help me with this.

    Thanks
    Uttam

  10. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm, that is strange. You are not getting any other errors?

    Typically if you see something like that, XSLT may not be enabled. But if that was the case you should be getting an error.

    I know a lot of times display errors are off.

    Can you put this at the top of the ez-staff-list.php file (just above where the framework is included):

    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    /**
    * Start the framework object
    */
    if (!class_exists('phplitefw_controller'))
    {
        include(dirname(__FILE__) . '/framework/phplitefw.inc.php');
    }
  11. ukarmakar
    Member
    Posted 1 year ago #

    I was not getting any other errors before enabling error_reporting. But now after enabling it is showing the below error...

    Notice: Error: [phplitefw_controller]::load_plugin(): Plugin "pagination" does not exist! in /home/perthlo1/public_html/perfecttouch/wp-content/plugins/ez-staff-list/framework/phplitefw.inc.php on line 154

    Please let me know what to do now.

    Thanks
    Uttam

  12. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    That's interesting. I'm not sure why that is actually being included anyway. I don't believe that is being used anywhere.

    You can just comment out or remove the line in ez-staff-list.php which looks like this (a few lines under what I wrote above):

    $pco->load_plugin('pagination');

    However, that error should not have anything to do with the problem you were having above.

    Do you know what version of PHP you have? Try running this at the top of that same file:

    phpinfo();
  13. ukarmakar
    Member
    Posted 1 year ago #

    I have commented the line $pco->load_plugin('pagination'); in ez-staff-list.php and now there is no error.

    I am running PHP Version 5.2.17

  14. ukarmakar
    Member
    Posted 1 year ago #

    but my problem is still there. only the error that was showing after enabling error_reporting is gone.

  15. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I'm going to put together a quick screencast video to confirm I understand where it is breaking... give me a few minutes.

  16. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    Please let me know if this video is accurate:

    http://screencast.com/t/C2V2Saek

  17. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    Can you also make sure these are in your phpinfo():

    http://screencast.com/t/rGaVNs1icZ7
    http://screencast.com/t/MV3ypdYG

  18. ukarmakar
    Member
    Posted 1 year ago #

    The process you displayed in the video for adding the plugin I have used that. Also the two objects are there in my phpinfo. I have added some screen shots for you, please check...

    http://www.screencast.com/t/uKTBjdHlQ
    http://www.screencast.com/t/YO89DSLR
    http://www.screencast.com/t/NxkIRkkcex
    http://www.screencast.com/t/YiectXVgVdg

  19. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    If you give me temporary access via your admin and FTP (FTP can be jailed to the ez-staff-list directory if you want).

    Let me know via my email luke.hoezee at gmail . com

  20. ukarmakar
    Member
    Posted 1 year ago #

    I have sent you details via email

  21. Luke
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the email. I was able to debug this and found the issue. I'm not sure if this is a PHP 5.2 thing or not because I don't need to do this in PHP 5.3. I assumed wordpress started the session already..

    I added session_start() at the top of the ez-staff-list.php file:

    session_start();
    
    /**
    * Start the framework object
    */
    if (!class_exists('phplitefw_controller'))
    {
        include(dirname(__FILE__) . '/framework/phplitefw.inc.php');
    }
  22. ukarmakar
    Member
    Posted 1 year ago #

    Thank you Lucas.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic