Jump to content

How to Fix This error!


Mahmoud

Recommended Posts

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

exception 'Whoops\Exception\ErrorException' with message 'Call to undefined function calinkupdatecc()' in /home/doctaeek/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php:0
Stack trace:
#0 /home/doctaeek/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Call to undefin...', '/home/doctaeek/...', 0)
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
#2 {main}

Link to comment
Share on other sites

try this

<?php
use WHMCS\ClientArea;
use WHMCS\Database\Capsule;

define('CLIENTAREA', true);

require '../init.php';

$ca = new ClientArea();

$ca->setPageTitle (Lang::trans('الاستضافة المشتركة'));


//$ca->requireLogin(); // Uncomment this line to require a login to access this page

// To assign variables to the template system use the following syntax.
// These can then be referenced using {$variablename} in the template.

//$ca->assign('variablename', $value);

// Check login status
if ($ca->isLoggedIn()) {

    /**
     * User is logged in - put any code you like here
     *
     * Here's an example to get the currently logged in clients first name
     */

    $clientName = Capsule::table('tblclients')
        ->where('id', '=', $ca->getUserID())->pluck('firstname');
        // 'pluck' was renamed within WHMCS 7.0.  Replace it with 'value' instead.
        // ->where('id', '=', $ca->getUserID())->value('firstname');
    $ca->assign('clientname', $clientName);

} else {

    // User is not logged in
    $ca->assign('clientname', 'Random User');

}
/**
 * Set a context for sidebars
 *
 * @link http://docs.whmcs.com/Editing_Client_Area_Menus#Context
 */


add_hook("ClientAreaPage", 1, "homepage_products_hook");

/**
 * Setup the primary and secondary sidebars
 *
 * @link http://docs.whmcs.com/Editing_Client_Area_Menus#Context
 */
 /*Menu::primarySidebar('announcementList');
   Menu::secondarySidebar('announcementList');
 */
# Define the template filename to be used without the .tpl extension

$ca->setTemplate('shared-hosting');

$ca->output();

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated