Mahmoud Posted January 2, 2018 Share Posted January 2, 2018 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 More sharing options...
sentq Posted January 3, 2018 Share Posted January 3, 2018 when the error occur exactly? 1 Link to comment Share on other sites More sharing options...
Mahmoud Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) Here is problem Www.site.com/folder/page-custom.php In the page and the folder Edited January 3, 2018 by Mahmoud Link to comment Share on other sites More sharing options...
Mahmoud Posted January 4, 2018 Author Share Posted January 4, 2018 can you help me ? please Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 4, 2018 Share Posted January 4, 2018 Hey Mahmoud, This sounds like an error with the coding in your custom page, I'm going to move this post to the development corner where a third party developer may be able to assist you further. 1 Link to comment Share on other sites More sharing options...
Mahmoud Posted January 4, 2018 Author Share Posted January 4, 2018 Thank you Bro i will waiting for help Link to comment Share on other sites More sharing options...
sentq Posted January 4, 2018 Share Posted January 4, 2018 Hi Mahmoud, attach the error message or more information please. 1 Link to comment Share on other sites More sharing options...
Mahmoud Posted January 4, 2018 Author Share Posted January 4, 2018 This my file My site a path in public_htm No have Client and have screen shot with error if you need more information please tell me hosting.rar Link to comment Share on other sites More sharing options...
sentq Posted January 4, 2018 Share Posted January 4, 2018 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(); -1 Link to comment Share on other sites More sharing options...
Mahmoud Posted January 5, 2018 Author Share Posted January 5, 2018 the same problem ! Link to comment Share on other sites More sharing options...
sentq Posted January 5, 2018 Share Posted January 5, 2018 2 hours ago, Mahmoud said: the same problem ! all you need to do is to fix the first lines to looks like below: define('CLIENTAREA', true); require '../init.php'; 1 Link to comment Share on other sites More sharing options...
Mahmoud Posted January 5, 2018 Author Share Posted January 5, 2018 Sorry bro it`s Working Link to comment Share on other sites More sharing options...
Recommended Posts