I'm currently building a project on top of yii2 and I've got a strange error when trying to create a new stepobject.
cept is an alias and leads to vendor/bin/codeception
(15:01:22) [yii] cept generate:stepobject acceptance Admin
Add action to StepObject class (ENTER to exit): X-Powered-By: PHP/7.0.6
Content-type: text/html; charset=UTF-8
<br />
<b>Warning</b>: fgets() expects parameter 1 to be resource, string given in
<b>*snip*/vendor/symfony/console/Helper/QuestionHelper.php</b> on line
<b>158</b><br />
[Symfony\Component\Console\Exception\RuntimeException]
Aborted
I'm using the latest version of yii.
Related
I am trying to set variable if url contains text "verification"
<set-variable name="pathQuery" value="#(context.Request.Url.Contains("verification"))" />
I get the following error
Error in element 'set-variable' on line 16, column 10: 'IUrl' does not
contain a definition for 'Contains' and the best extension method
overload 'Queryable.Contains(IQueryable, string)'
requires a receiver of type 'IQueryable'
How do I set this?
You could use the code as below:
<set-variable name="pathQuery" value="#(context.Request.Url.Path.Contains("verification"))" />
For more details, you could refer to this article.
I have made sure that the columns match the 'column to export' field in the columns tab, not null columns have data, tried in both csv and txt but all i get is a message saying:
import/export job created
Nothing else: no errors, no warning, no completion.
windows 7 os
Version1.4
CopyrightCopyright 2013 - 2017, The pgAdmin Development Team
Python Version2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]
Flask Version0.11.1
Application ModeDesktop
till then ill try via psql
Just a guess, but are you trying this as a superuser? I'm having the same issue and so trying to write it as a COPY statement, but get this response:
ERROR: must be superuser to COPY to or from a file
SQL state: 42501
Hint: Anyone can COPY to stdout or from stdin. psql's \copy command also works for anyone.
I'm not sure, but maybe the functionality in pgAdmin just constructs a COPY statement, then isn't properly relaying the error message back to you when it fails.
Sounds like psql is the right way to go, though.
I am getting an error while I try to generate a report from OpenERP.
File "/home/target/projects/orthene/pentaho_reports/wizard/report_prompt.py", line 207, in _setup_parameters
report_parameters = proxy.report.getParameterInfo(proxy_argument)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: 'Failed to invoke method getParameterInfo in class com.willowit.reporting.PentahoRenderer: Failed at query: SELECT name FROM res_partner WHERE customer=True'>
Here is how my pentaho report design looks like:
The pentaho report designed version is 5.0.1-Stable
It is a JDBC connection with my local postgres database connection, which is a successful connection in report designer.
select_partner is a SQL query that fetches all the partner names to show in parameter.
SELECT name FROM res_partner WHERE customer=True
PartnerQuery is a SQL query that fetches name,city,phone & email of customers
SELECT name,city,phone,email FROM res_partner WHERE customer=True AND name=${partner} // ${partner} is a parameter defined
partner parameter is containing drop down selection of partners when we generate a report, it includes 2 point partner_query(which lists down all the partners)
![enter image description here][2]
Report is working fine in Pentaho report designed & give output like this:
But it is not working in OpenERP & getting an error as described on the very top.
Keyur, I recommend that you post it on github page of WillowIT or this pentaho module.
Here is what I found https://github.com/WillowIT/Pentaho-reports-for-OpenERP/issues/125.
Is this query returning NULL?
There was a wrong value of pentaho.postgres.password in OpenERP Settings->Technical->Parameters->System Parameters.
This issue was solved after applying correct password.
The error
Fault 0: 'Failed to invoke method getParameterInfo in class com.willowit.reporting.PentahoRenderer:
is a pretty generic error. It is the top level of the error log from the Pentaho reporting engine when almost anything goes wrong, and is what is returned to Odoo (OpenERP). As such, on its own, it is not helpful for working which of the numerous possible problems it can be.
Generally, the tomcat log file (catalina.out) can be far more helpful in working out what is wrong in the reporting set up.
There are a number of issues tagged with Failed to invoke method getParameterInfo on github.
Can I encourage people to look through the github issues and post there when looking for solutions.
I need to connect a .net application to a mysql database. When I add the tables to the model, all the columns with the type Tinyint are mapped like boolean.
After Searching in mysql forum, i add "Treat Tiny As Boolean=false" in the connection string. When I refresh the model, nothing changes. If I change the type manually to Sbyte or Int 16 I get the following error.
Error 43 Error 2019: Member Mapping specified is not valid. The type 'Edm.SByte[Nullable=True,DefaultValue=]' of member 'personacion' in type 'Model.perfiles' is not compatible with 'MySql.usmallint[Nullable=True,DefaultValue=]' of member 'personacion' in type 'Model.Store.perfiles'. C:\Proyectos\StatusXMLGenerator\StatusXMLGenerator\StatusXMLGenerator\Model.edmx 474 17 StatusXMLGenerator
Error 42 Error 2019: Member Mapping specified is not valid. The type 'Edm.Int16[Nullable=False,DefaultValue=]' of member 'id_seccion' in type 'Model.formularios' is not compatible with 'MySql.bool[Nullable=False,DefaultValue=]' of member 'id_seccion' in type 'Model.Store.formularios'. C:\Proyectos\StatusXMLGenerator\StatusXMLGenerator\StatusXMLGenerator\Model.edmx 454 17 StatusXMLGenerator
The error 42 has also an incorrect mapping. It says that the type of the column is Mysql.Bool, but in the databases, I have stored values from 1 to 10, so it should be Mysql.usmallint, like in error 43.
This is my connection string:
<add name="ModelContainer" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=MySql.Data.MySqlClient;provider connection string="server=**********;user id=*******;password=*****;database=pki_2010;persistsecurityinfo=True;Treat Tiny As Boolean=false;"" providerName="System.Data.EntityClient" />
Any ideas?
Solved.
If there is anyone on my situation this is the solution.
1º Add "Treat Tiny As Boolean=false" to the connection string.
2º Build to refresh the new value of the connection string
3º Open the model as XML and set the values of the columns to "tinyint" (The schema should be something like:
<edmx><schema><entitycontainer><entitytype><property name="..." type="tinyint">...
4º Open the model with the designer and map the columns to Sbyte
5º Save and build again.
I have a website running with Pyrocms & CodeIgniter.
My config is the following:
Debian: 5.0.9
Apache: 2.2.9
MySQL: 5.0.51
PHP: 5.2.6-1
I'm facing the following problem:
I receive POST requests to insert messages in my database.
Sometimes the frequency of db insert is up to 100 messages / seconds
Database engine used : innoDD
After a moment I get a white page when i try to reach the homepage or any modules except the admin.
www.project.com is giving HTTP status 200 but page is blank
same for www.project.com/mycontroller is giving HTTP status 200 but page is blank
admin is working fine
In my log files i have following errors :
ERROR - 2011-11-18 15:04:28 --> Severity: Notice --> iconv() [function.iconv]: Detected an illegal character in input string /home/project/system/codeigniter/core/Utf8.php 89
For the moment i do a dump of my db every 30 minutes and rollback to the last working db when the plateform is crashing.
I have made some tests on my database with mysqlcheck but everything seems to be ok in the db.
Thank you for your help.
PHP is probably choking on some characters when converting with iconv. try adding "//IGNORE" to you second argument so it looks something like that
iconv("UTF-8", "ISO-8859-1//IGNORE", $text);