in my server i downloaded and uploaded the zend gdata library.then as a test i created a seperated folder and checked whether its working. and yes it worked.so i kept the folder structure as it is and moved the files in to my app. then it gave me an error like this.even if i tried the same code which i used in the test folder, it gives me the same error.please help me.
error
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400 [Line 1, Column 451, element gd:when] Badly formatted datetime' in /var/www/vhosts/eyepax.info/rsdesign.eyepax.info/emailApp2/Zend/Gdata/App.php:714 Stack trace: #0 /var/www/vhosts/eyepax.info/[host]/emailApp2/Zend/Gdata.php(219): Zend_Gdata_App->performHttpRequest('POST', 'https://www.goo...', Array, 'performHttpRequest('POST', 'https://www.goo...', Array, 'performHttpRequest('POST', 'https://www.goo...', Array, 'performHttpRequest('POST', 'https://www.goo...', Array in /var/www/vhosts/eyepax.info/[host]/emailApp2/Zend/Gdata/App.php on line 714
if this is a fault with the library, please tell me what to do..
in the test folder i have 2 files and the folder named Zend...i used the following code as a class and used it's example code to test it.and it worked. my problem is why is it not working in my app?
class=http://www.phpclasses.org/browse/file/28780.html
i received this error for several reasons. my time offset was not correct.and the way i entered the time was incorrect aswell. it should be HH:MM:SS not HH.MM.SS . hope this helps someone
Related
I have website which has Gutenberg and it is very important part of it, problem is..
When i enter page and try to save it i get error 500, in console i have this error in console
POST https://myDomain/wp-json/wp/v2/pages/5950 500 ()
POST https://myDomain/wp-admin/post.php?post=5950&action=edit&classic-editor=1&meta_box=1 500 ()
and this error in my error log
[12-Sep-2018 09:46:18 UTC] PHP Fatal error: Uncaught Exception: Invalid page template. in /usr/www/users/foodno/v32/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-duplication.class.php:99
Stack trace:
#0 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(4219): WPML_Post_Duplication->make_duplicate(5950, 'he')
#1 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-synchronization.class.php(84): SitePress->make_duplicate(5950, 'he')
#2 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(248): WPML_Post_Synchronization->sync_with_duplicates(5950)
#3 /usr/www/users/myDomain/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(113): WPML_Post_Translation->after_save_post('535', Array, 'en', NULL)
#4 /usr/www/users/myDomain/wp-includes/class-wp-hook.php(288): WPML_Admin_Post_Actions->save_post_actions('5950', Objec in /usr/www/users/foodno/v32/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-duplication.class.php on line 99
I am also using WPML plugin, and on save plugin gets stuck screenshot
Loader is in loop...
Thing is, it saves the edited content, but still it returns error 500, i tried debugging and got absolutely nothing
I have googled it of course before asking and i found these as known Gutenberg issues that occured before... None of these did not help.. Does anyone have any suggestion or solution?
https://github.com/WordPress/gutenberg/issues/5675
https://github.com/WordPress/gutenberg/issues/8410
Thanks in advance
I asked on their git also, and i've got an answer from mr with nickname "brucepearson" and WPML will apparently fix this in next update, here is link to git q/a
https://github.com/WordPress/gutenberg/issues/9816
Hello fellow developers and problem-solvers,
I'm running into a PHP7 issue it seems where my code needs to be updated for:
/home/wp-theme/public_html/wp-content/plugins/responsive-google-maps/classes/MarkAdCoreClasses/Metabox.php on line 115
I did some searches and wasn't able to find this particular issue with other threads on Stack Overflow. I'm somewhat familiar with PHP, but not a guru at working with core PHP files. I'm more of a front-end/full-stack developer.
Error Shown on the sidebar: "Responsive Google Maps" WordPress Plugin
Fatal error: Uncaught Error: Function name must be a string in /home/wp-theme/public_html/wp-content/plugins/responsive-google-maps/classes/MarkAdCoreClasses/Metabox.php:115 Stack trace: #0 /home/wp-theme/public_html/wp-admin/includes/template.php(1048): ResponsiveGoogleMaps_MarkAdCoreClasses_Metabox->render_metabox_content(Object(WP_Post), Array) #1 /home/wp-theme/public_html/wp-admin/edit-form-advanced.php(696): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post)) #2 /home/wp-theme/public_html/wp-admin/post.php(173): include('/home/wp-theme...') #3 {main} thrown in /home/wp-theme/public_html/wp-content/plugins/responsive-google-maps/classes/MarkAdCoreClasses/Metabox.php on line 115
Source code: Metabox.php on line 115
$field_output .= $this->form_fields->$field['type'](array($field, $settings['metabox_id'], $passed_values));
Much appreciated if someone can help me. Thanks in advance.
Line 115 seems to be calling a dynamic function, whose name is retrieved from the $field variable of type array within the form_fields object.
The same issue does seem to be reported on the CodeCanyon item page a few years ago here.
I would recommend redownloading the plugin and uploading it to /wp-content/plugins/ folder on the website to see if the latest update resolves the issue.
Managed to fix it, I was right about it being related to PHP7.
Change
$field_output .= $this->form_fields->$field['type'](array($field, $settings['metabox_id'], $passed_values));
to
$field_output .= $this->form_fields->{$field['type']}(array($field, $settings['metabox_id'], $passed_values));
We're using the PHP GAPI ([https://code.google.com/p/gapi-google-analytics-php-interface/) to retrieve data and to show graphs in admin panel of our websites.
We know this library hasn’t been updated since 2009, but it was working fine for us for a long time until some months ago...
Bellow is the error we got :
Fatal error:
Uncaught exception 'Exception' with message 'GAPI: Failed to request report data.
Error: "Request failed, fopen provides no further information"' in /www/clientname/site/lacentrale/gapi.class.php:218
Stack trace:
#0 /www/clientname/site/cms/include.dashboard.analytics.visits.php(37): gapi->requestReportData('95220065', Array, Array, Array, NULL, '2014-11-23', '2014-12-22', 1, 30)
...
#6 {main} thrown in /www/clientname/site/cms/gapi.class.php on line 218
Here is the code for include.dashboard.analytics.visits.php — lines 35 to 39 (error on line 37):
if ( ! $ga = $myCache->getCache() ){
$ga = new gapi(ga_email,ga_password);
$ga->requestReportData(ga_profile_id,array($dimension),array('visits','pageviews','timeOnSite','avgTimeOnSite','pageviewsPerVisit'),array($dimension),null,$begin,$end,1,$max);
$myCache->saveCache($ga);
}
And here is the code for gapi.class.php — lines 212 to 219 (error on line 218):
if(substr($response['code'],0,1) == '2')
{
return $this->reportObjectMapper($response['body']);
}
else
{
throw new Exception('GAPI: Failed to request report data. Error: "' . strip_tags($response['body']) . '"');
}
We don’t fully understand these errors which are not so clear, and as nothing changed in these files...
As we seen on other StackOverflow tickets and other forums, we've already checked our profile ID which is the good one (8 digits after the p in the Google Analytics URL).
We would like to not move to another PHP API for GA (if any other available? what would be the best solution as of today?) because it would required a lot a work to implement again the admin panel we've made ...
Many thanks for your help!
Problem solved : we had made modifications into the gapi.class.php file since a long time for a project which required special securised specifications for server connection and we were still using this file modified in other projects which do not required this modifications...
So we downloaded a clean copy of GAPI and replaced with the initial file to solve the problem ;-)
I tried course bulk upload plugin for creating courses using CSV in moodle 2.4.2.
But the course created shows error in debugging mode. Is there any solution for this issue.
Coding error detected, it must be fixed by a programmer:
Invalid string compontent. Please check your string definition More information
about this error
Debug info:
Error code:
codingerror Stack trace:
•line 11176 of \lib\moodlelib.php: coding_exception thrown
•line 812 of \lib\outputrequirementslib.php: call to lang_string->__construct()
•line 848 of \lib\outputrequirementslib.php: call to page_requirements_manager->string_for_js()
•line 4575 of \course\lib.php: call to page_requirements_manager->strings_for_js()
•line 282 of \course\view.php: call to include_course_ajax()
Thanks in Advance
Vinoth
The Error may be due to the theme section i used. I tried to use the different form of CSV only with Category, shortname, desscription, format etc. And now the courses are created successfully with no error.
It solved my problem.
Thanks
Vinoth
I am completely inexperience with this whole SOAP concept so I have no idea what to look for when I see an error.
So basically I am trying to pull some data from another company. That company gave me a digital certificate and and some xsd & wsdl files and asked me for my server's IP so they could whitelist it. As I mentioned, I have no idea what to do with the files they gave me, so I uploaded them to my server and then I started googling, and I have pasted together the following code (although I don't even know if it makes sense):
$protected_url = "http://www.myurl.com/WSDLFILE.wsdl";
$my_cert_file = "http://www.myurl.com/CERTFILE.pem";
$client = new SoapClient($protected_url, array('local_cert'=> $my_cert_file,'trace'=>1));
$params->Affiliate->AffiliateID = 555;
$params->Address->AddressLine = "123 Main Street";
$params->Contact = 'No';
$result = $client->QueryAddress($params);
And I get the following error
[10-Apr-2013 18:59:46 America/New_York] PHP Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in /home/mysite/index.php:15
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://secure....', 'http://www....', 1, 0)
#1 /home/mysite/index.php(15): SoapClient->__call('QueryAddress', Array)
#2 /home/mysite/index.php(15): SoapClient->QueryAddress(Object(stdClass))
#3 {main}
thrown in /home/mysite/index.php on line 15
It's kind of hard to search for help because I dont even know what I'm searching for, so any guidance is appreciated
EDIT: I should also add that I have actually been able to get a successful response by using cURL and setting the "CURLOPT_SSLCERT" option, but I need to use SOAP
(Answered in the comments. Converted to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
SOLVED: My problem was the way I was using the .wsdl file. I thought I had to upload the one they provided and then use it when creating the SoapClient, but that was not the case. What I needed to was reference their wsdl url, which ended in something like https:......asmx?WSDL