I am new in smarty, i have developed an application in smarty. It works fine in local server. I uploaded these files to the online server, it shows following errors.
Fatal error: Uncaught exception 'SmartyException' with message 'template property 'compiler_object' does not exist.' in D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\sysplugins\smarty_internal_template.php:953 Stack trace: #0 D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\sysplugins\smarty_internal_template.php(247): Smarty_Internal_Template->__get('compiler_object') #1 D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\sysplugins\smarty_internal_template.php(456): Smarty_Internal_Template->compileTemplateSource() #2 D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\sysplugins\smarty_internal_template.php(567): Smarty_Internal_Template->renderTemplate() #3 D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\Smarty.class.php(338): Smarty_Internal_Template->getRenderedTemplate() #4 D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\Smarty.class.php(382): Smarty->fetch('index.tpl.html', NULL, NULL, NULL, true) #5 D:\inetpub\vhosts\mobmail.eu\httpdocs\index. in D:\inetpub\vhosts\mobmail.eu\httpdocs\libs\smarty-3.0.7\libs\sysplugins\smarty_internal_template.php on line 953
I dont know why this error in my server. Thanks in advance.
Related
I am trying to migrate a live WordPress site to my localhost environment. And I believe that the PHP version on current hosting server is higher than my localhost environment version, which is causing some issue while migrating. As I don't know much about SQL code as well as how to interpret the error log, can you guide me on what I should be doing to rectify the error?
Followed is the error message I am getting:
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in C:\xampp\htdocs\shag\wp-content\themes\twentyseventeen\functions.php:60
Stack trace:
#0 C:\xampp\htdocs\shag\wp-settings.php(425): include()
#1 C:\xampp\htdocs\shag\wp-config.php(89): require_once('C:\\xampp\\htdocs...')
#2 C:\xampp\htdocs\shag\wp-load.php(37): require_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\shag\wp-blog-header.php(13): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\shag\index.php(17): require('C:\\xampp\\htdocs...')
#5 {main} thrown in C:\xampp\htdocs\shag\wp-content\themes\twentyseventeen\functions.php on line 60
define('WP_USE_EXT_MYSQL', true);
Would you please define above code in your wp-config.php? And check it. I think it's helpful for you.
I tried the Example CLI PHP code from Google. The listFiles() method throws a 500 Internal Error from Google's servers, as shown in the stack trace:
bash-4.2$ php test.php
PHP Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/drive/v2/files?maxResults=10: (500) Internal Error' in /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php:79
Stack trace:
#0 /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php(44): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request))
#1 /home/ben/.../vendor/google/apiclient/src/Google/Client.php(556): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#2 /home/ben/.../vendor/google/apiclient/src/Google/Service/Resource.php(195): Google_Client->execute(Object(Google_Http_Request))
#3 /home/ben/.../vendor/google/apiclient/src/Google/Service/Drive.php(1783): Google_Service_Resource->call('list', Array, 'Google_Service_...')
#4 /home/ben/.../test.php(78): Google_Service_Drive_Files_Resource->listFiles(Arra in /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php on line 79
I deleted the saved credentials and tried again. That did not help:
bash-4.2$ php test.php
Open the following link in your browser:
https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=urn%3A
ietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=...&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.metadata.readonly&access_type=offline&approval_prompt=auto
Enter verification code: ...
Credentials saved to /home/ben/.credentials/drive-php-quickstart.json
PHP Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/drive/v2/files?maxResults=10: (500) Internal Error' in /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php:79
Stack trace:
#0 /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php(44): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request))
#1 /home/ben/.../vendor/google/apiclient/src/Google/Client.php(556): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#2 /home/ben/.../vendor/google/apiclient/src/Google/Service/Resource.php(195): Google_Client->execute(Object(Google_Http_Request))
#3 /home/ben/.../vendor/google/apiclient/src/Google/Service/Drive.php(1783): Google_Service_Resource->call('list', Array, 'Google_Service_...')
#4 /home/ben/.../test.php(78): Google_Service_Drive_Files_Resource->listFiles(Arra in /home/ben/.../vendor/google/apiclient/src/Google/Http/REST.php on line 79
I searched through the github issues and stackoverflow questions tagged google-api-php-client, but did not find any clues. I logged into the developer console and clicked Logs, which resulted in the text
Failed to load.
Any ideas how to get more detailed information about 500 errors from Google?
try adding this to the beginning of the code in the file calling Google Drive API
date_default_timezone_set('America/New_York') //change timezone you want
Also make sure, folder permission inside the google drive is set.
i am using HybridAuth library for social logins.
everything is working perfectly on localhost.
and it was working on my hosting server too but now i am getting this errors suddenly:
when i tried with google:
Fatal error: Uncaught exception 'Exception' with message 'User profile
request failed! Google returned an error: exception 'Exception' with
message 'The Authorization Service has return: ' in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:82
Stack trace: #0
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Provider_Model_OAuth2.php(114):
OAuth2Client->authenticate('4/P-5SuqvrU0DDy...') #1
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Provider_Model_OAuth2->loginFinish() #2
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):
Hybrid_Endpoint::processAuthDone() #3
/home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):
Hybrid_Endpoint::process() #4
/home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):
require_once('/home/moviesain...') #5 [internal function]:
HAuth->endpoint() #6 /home/mov in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php
on line 147
and when tried with facebook:
Fatal error: Uncaught exception 'Exception' with message
'Authentication failed! Facebook returned an invalid user id.' in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Providers/Facebook.php:91
Stack trace: #0
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Providers_Facebook->loginFinish() #1
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):
Hybrid_Endpoint::processAuthDone() #2
/home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):
Hybrid_Endpoint::process() #3
/home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):
require_once('/home/moviesain...') #4 [internal function]:
HAuth->endpoint() #5
/home/moviesaints/public_html/dev/system/core/CodeIgniter.php(359):
call_user_func_array(Array, Array) #6
/home/moviesaints/public_html/dev/index.php(202):
require_once('/home/moviesain...') #7 {main} Next exception
'Exception' with message 'Authentic in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php
on line 147
I have tried following solutions but still facing the same problem:
hybridauth-php-facebook-returned-an-invalid-user-id
hybridauth-facebook-returned-an-invalid-user-id
laravel4-hybridauth-facebook-authentication-failed-facebook-returned-an-invalid
Github Solution
Google group Solution
Help please, It will be appreciated.
I'm not sure this is true or not but after I was able to get my installation working I still could not get Facebook to work, no matter how hard I tried. My guess is that the SDK files used by Hybridauth for Facebook are deprecated. Facebook released new versions and quite a reworked SDK recently. That could be why there seem to be a lot of people suffering from issues with the Facebook provider right now.
I seem to be getting an error when trying to upload large files into MongoDB..
Fatal error: Uncaught exception 'MongoGridFSException' with message 'could not open file ' in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php:33 Stack trace: #0 /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php(33): MongoGridFS->storeUpload('pic', Array) #1 /home/jclark/thundergrid.fusionstrike.com/thundergrid/admin/index.php(7): Admin->upload() #2 {main} Next exception 'MongoGridFSException' with message 'error setting up file: ' in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php:33 Stack trace: #0 /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php(0): MongoGridFS->storeUpload() #1 /home/jclark/thundergrid.fusionstrike.com/thundergrid/admin/index.php(7): Admin->upload() #2 {main} thrown in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php on line 33
Is there a reason I'm getting these or...
Many thanks!
If the file is over 2GB/4GB, then this is likely a limitation on how PHP is build on your platform. In most cases, LFS (large file system) is not enabled (and theoretically it's not officially supported by the PHP dev team either). It is also possible that you are using a 32-bit compile of PHP as well, in which case you need a 64-bit build.
Have any of you encountered this error before while running the demo of WURFL? I am tyring to user WURFL to redirect our mobile site visitors to different content but this error is not letting me go ahead.
Here is the error Detail:
Fatal error: Uncaught exception 'WURFL_WURFLException' with message 'The ZipArchive extension is not loaded. Load the extension or use the flat wurfl.xml file' in /var/www/bpaudel/wurfl-php-1.4.1/WURFL/Xml/Utils.php:49 Stack trace: #0 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/Xml/Utils.php(36): WURFL_Xml_Utils::getZippedFile('/var/www/bpaude...') #1 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/Xml/AbstractIterator.php(47): WURFL_Xml_Utils::getXMLFile('/var/www/bpaude...') #2 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/DeviceRepositoryBuilder.php(83): WURFL_Xml_AbstractIterator->__construct('/var/www/bpaude...') #3 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/WURFLManagerFactory.php(150): WURFL_DeviceRepositoryBuilder->build('/var/www/bpaude...', NULL) #4 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/WURFLManagerFactory.php(134): WURFL_WURFLManagerFactory->deviceRepository(Object(WURFL_Storage_File), Object(WURFL_UserAgentHandlerChain)) #5 /var/www/bpaudel/wurfl-php-1.4.1/WURFL/WURFLManagerFactory.php(77): WURFL_WURFLManagerFactory->init() #6 /var/w in /var/www/bpaudel/wurfl-php-1.4.1/WURFL/Xml/Utils.php on line 49
In the error, it also says "use the flat wurfl.xml" file. How would we use wurfl.xml as an alternative?
Thanks,
Bishnu