hello

thanks for the better user interface in 7.x-1.x.dev

i used views_php in version 6 and now i am trying to use in 7, but i am having lots of problems.
i am using PHP Version 5.3.10-1ubuntu3.6

i am trying to download tcpdf, fpdi, fpdf_tpl.php in different versions and doing combinations. i also tried https://drupal.org/node/1288782#comment-6561894 that gives his files already patched.
with this version, the errors stopped, but the upper-case example given in the documentation doesnt work.
i mean

$content = strtoupper($content);

in the field settings (i used in version 6 and it worked).

could someone, please tell to me which versions to use or put a link on a version where you can change the $content, please?
i am hours trying without success... thanks y buen dia! :)

Comments

thanks to killua99 i have been able to use the libraries without warmings, errors and with more css accepted!!
FPDI - Version 1.4.4
TCPDF Version: 6.0.020
FPDF_TPL - Version 1.2.3

i am working with the dev version and now i go to apply his patch on https://drupal.org/node/2032189

thanks a lot killua99

after doing this, i got many warnings and ajax errors because of them. i had to disable E_STRICT in my php.ini, as recomended in https://drupal.org/node/1288782 and now i can work with better css interpreter.

i think this part makes many users no to use this module. i hope we find a way to resolve this and document it.

thanks killua99 to help to me in the chat :)

some of the warnings

Strict warning: Declaration of FPDF::_putstream() should be compatible with that of TCPDF::_putstream() in require_once() (line 167 of /xxx/sites/all/libraries/fpdi/fpdi2tcpdf_bridge.php). =>
Strict warning: Declaration of FPDF_TPL::SetFont() should be compatible with that of TCPDF::SetFont() in require_once() (line 460 of /xxx/sites/all/libraries/fpdi/fpdf_tpl.php). =>
Strict warning: Declaration of PdfTemplate::addPage() should be compatible with that of FPDF_TPL::AddPage() in require_once() (line 24 of /xxx/sites/all/modules/contrib/views_pdf/views_pdf_template.php). =>

and the ajax errors when i try to modify pdf fields settings in the view

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /xxx/en/admin/structure/views/ajax/display/user_invoices/pdf_1/row_options
StatusText: OK
ResponseText: Notice: Undefined index: args in /xxx/sites/all/libraries/fpdi/fpdi2tcpdf_bridge.php on line 167
Notice: Undefined index: args in /xxx/sites/all/libraries/fpdi/fpdf_tpl.php on line 460
[{"command":"settings","settings":{"basePath":"\/tarros_v\/","pathPrefix":"en\/","ajaxPageState":{"theme":"administrar","theme_token":"LxwFgsOAcqsIHjXfSgSqz-JrtNRh8bxVVPbPEl-6hb0","js":{"misc\/form.js":1,"misc\/collapse.js":1,"misc\/textarea.js":1}},"chosen":{"selector":".view-filters .views-exposed-form select","minimum":0,"minimum_width":200,"search_contains":true}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/localhost\/tarros_v\/misc\/form.js?v=7.22\u0022\u003E\u003C\/script\u003E\n\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/localhost\/tarros_v\/misc\/collapse.js?v=7.22\u0022\u003E\u003C\/script\u003E\n\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/localhost\/tarros_v\/misc\/textarea.js?v=7.22\u0022\u003E\u003C\/script\u003E\n","settings":null},{"command":"viewsSetForm","output":"\u003Cdiv class=\u0022views-messages\u0022\u003E\u003Cdiv class=\u0022messages warning\u0022\u003E\n\u003Ch2 class=\u0022element-invisible\u0022\u003EWarning message\u003C\/h2\u003E\n \u003Cul\u003E\n  \u003Cli\u003E\u003Cem class=\u0022placeholder\u0022\u003EStrict warning\u003C\/em\u003E: \u003Cem class=\u0022placeholder\u0022\u003EDeclaration of FPDF::_putstream() should be compatible with that of TCPDF::_putstream()\u003C\/em\u003E in \u003Cem class=\u0022placeholder\u0022\u003Erequire_once()\u003C\/em\u003E (line \u003Cem class=\u0022placeholder\u0022\u003E167\u003C\/em\u003E of \u003Cem class=\u0022placeholder\u0022\u003E\/datos\/treballs\/tarros\/tarros_v\/sites\/all\/libraries\/fpdi\/fpdi2tcpdf_bridge.php\u003C\/em\u003E). =\u003E \u003C!-- Using Krumo Skin: skins\/orange\/skin.css --\u003E\n\u003Cstyle type=\u0022text\/css\u0022\u003E\n\u003C!--\/**\/\n\/**\r\n* Krumo \u0022Orange\u0022 Skin\r\n*\r\n* @author Kaloyan K. Tsvetkov \u003Cmrasnika@users.sourceforge.net\u003E\r\n*\/\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\nul.krumo-node {\r\n\tmargin: 0px;\r\n\tpadding: 0px;\r\n\t}\r\nul.krumo-node ul {\r\n\tmargin-left: 20px;\r\n\t}\r\n* html ul.krumo-node ul {\r\n\tmargin-left: 24px;\r\n\t}\r\ndiv.krumo-root {\r\n\tborder: solid 1px black;\r\n\tmargin: 1em 0em;\r\n\t}\r\nul.krumo-first {\r\n\tfont: normal 12px arial;\r\n\tborder: solid 2px white;\r\n\tborder-top-width:1px;\r\n\tbackground: url(http:\/\/localhost\/tarros_v\/sites\/all\/modules\/devel\/krumo\/skins\/orange\/bg.gif);\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\nli.krumo-child {\r\n\tdisplay:block;\r\n\tlist-style: none;\r\n\tpadding: 0px;\r\n\tmargin: 0px;\r\n\toverflow:hidden;\r\n\t}\r\ndiv.krumo-element {\r\n\tcursor:default;\r\n\r\n\tline-height: 24px;\r\n\tdisplay:block;\r\n\t\r\n\tclear:both;\r\n\twhite-space:nowrap;\r\n\t\r\n\tborder-top: solid 1px white;\r\n\tbackground: #FCEBA9;\r\n\tpadding-left: 10px;\r\n\t}\r\n* html div.krumo-element {\r\n\tpadding-bottom: 3px;\r\n\t}\r\na.krumo-name {\r\n\tcolor:#404000;\r\n\tfont: bold 13px Arial;\r\n\t}\r\na.krumo-name big {\r\n\tfont: bold 20pt Georgia;\r\n\tline-height: 14px;\r\n\tposition:relative;\r\n\ttop:2px;\r\n\tleft:-2px;\r\n\t}\r\n* html a.krumo-name big {\r\n\tfont: bold 19pt Georgia;\r\n\ttop: 5px;\r\n\tleft: 0px;\r\n\tline-height: 9px;\r\n\theight: 12px;\r\n\tpadding: 0px;\r\n\tmargin: 0px;\r\n\t}\r\ndiv.krumo-expand {\r\n\tbackground: #FADB61;\r\n\tcursor:pointer;\r\n\t}\r\ndiv.krumo-hover {\r\n\tbackground: #FF8A4B;\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\ndiv.krumo-preview {\r\n\tfont: normal 13px courier new;\r\n\tpadding: 5px 5px 14px 5px;\r\n\tbackground: white;\r\n\tborder-top: 0px;\r\n\toverflow:auto;\r\n\twhite-space: pre;\r\n\t}\r\n* html div.krumo-preview {\r\n\tpadding-top: 2px;\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\nli.krumo-footnote {\r\n\tbackground:white;\r\n\tpadding: 2px 5px;\r\n\tlist-style:none;\r\n\tborder-top: solid 1px #bebebe;\r\n\tmargin-top:2px;\r\n\tcursor:default;\r\n\t}\r\n* html li.krumo-footnote {\r\n\tline-height: 13px;\r\n\t}\r\ndiv.krumo-version {\r\n\tfloat:right;\r\n\t}\r\nli.krumo-footnote h6 {\r\n\tfont: bold 11px verdana;\r\n\tmargin: 0px;\r\n\tpadding: 0px;\r\n\tcolor:#E87400;\r\n\tdisplay:inline;\r\n\t}\r\n* html li.krumo-footnote h6 {\r\n\tmargin-right: 3px;\r\n\t}\r\nli.krumo-footnote a {\r\n\tfont: bold 10px arial;\r\n\tcolor: #434343;\r\n\ttext-decoration:none;\r\n\t}\r\nli.krumo-footnote a:hover {\r\n\tcolor:black;\r\n\t}\r\n\r\nli.krumo-footnote span.krumo-call {\r\n\tfont:normal 11px verdana;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\nli.krumo-footnote span.krumo-call code {\r\n\tfont-weight:bold;\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\ndiv.krumo-title {\r\n\tfont: normal 11px verdana ;\r\n\tposition:relative;\r\n\ttop:9px;\r\n\tcursor:default;\r\n\tline-height:2px;\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\r\nstrong.krumo-array-length,\r\nstrong.krumo-string-length {\r\n\tfont-weight: normal;\r\n\t}\r\n\r\n\/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- *\/\r\n\n\/**\/--\u003E\n\u003C\/style\u003E\n\u003Cscript type=\u0022text\/javascript\u0022\u003E\n\u003C!--\/\/\n\/**\r\n* JavaScript routines for Krumo\r\n*\r\n* @link http:\/\/sourceforge.net\/projects\/krumo\r\n*\/\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n\r\n\/**\r\n* Krumo JS Class\r\n*\/\r\nfunction krumo() {\r\n\t}\r\n\r\n\/\/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n\r\n\/**\r\n* Add a CSS class to an HTML element\r\n*\r\n* @param HtmlElement el \r\n* @param string className \r\n* @return void\r\n*\/\r\nkrumo.reclass = function(el, className) {\r\n\tif (el.className.indexOf(className) \u003C 0) {\r\n\t\tel.className += (\u0027 \u0027 + className);\r\n\t\t}\r\n\t}\r\n\r\n\/\/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n\r\n\/**\r\n* Remove a CSS class to an HTML element\r\n*\r\n* @param HtmlElement el \r\n* @param string className \r\n* @return void\r\n*\/\r\nkrumo.unclass = function(el, className) {\r\n\tif (el.className.indexOf(className) \u003E -1) {\r\n\t\tel.className = el.className.replace(className, \u0027\u0027);\r\n\t\t}\r\n\t}\r\n\r\n\/\/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n\r\n\/**\r\n* Toggle the nodes connected to an HTML element\r\n*\r\n* @param HtmlElement el \r\n* @return void\r\n*\/\r\nkrumo.toggle = function(el) {\r\n\tvar ul = el.parentNode.getElementsByTagName(\u0027ul\u0027);\r\n\tfor (var i=0; i\u003Cul.length; i++) {\r\n\t\tif (ul[i].parentNode.parentNode == el.parentNode) {\r\n\t\t\tul[i].parentNode.style.display = (ul[i].parentNode.style.display == \u0027none\u0027)\r\n\t\t\t\t? \u0027block\u0027\r\n\t\t\t\t: \u0027none\u0027;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\/\/ toggle class\r\n\t\/\/\r\n\tif (ul[0].parentNode.style.display == \u0027block\u0027) {\r\n\t\tkrumo.reclass(el, \u0027krumo-opened\u0027);\r\n\t\t} else {\r\n\t\tkrumo.unclass(el, \u0027krumo-opened\u0027);\r\n\t\t}\r\n\t}\r\n\r\n\/\/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n\r\n\/**\r\n* Hover over an HTML element\r\n*\r\n* @param HtmlElement el \r\n* @return void\r\n*\/\r\nkrumo.over = function(el) {\r\n\tkrumo.reclass(el, \u0027krumo-hover\u0027);\r\n\t}\r\n\r\n\/\/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n\r\n\/**\r\n* Hover out an HTML element\r\n*\r\n* @param HtmlElement el \r\n* @return void\r\n*\/\r\n\r\nkrumo.out = function(el) {\r\n\tkrumo.unclass(el, \u0027krumo-hover\u0027);\r\n\t}\r\n\t\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/--\u003E\n\u003C\/script\u003E\n\u003Cdiv class=\u0022krumo-root\u0022 dir=\u0022ltr\u0022\u003E\n  \u003Cul class=\u0022krumo-node krumo-first\u0022\u003E\n    \u003Cli class=\u0022krumo-child\u0022\u003E\n\n  \u003Cdiv class=\u0022krumo-element krumo-expand\u0022\n     onClick=\u0022krumo.toggle(this);\u0022    onMouseOver=\u0022krumo.over(this);\u0022\n    onMouseOut=\u0022krumo.out(this);\u0022\u003E\n\n            \u003Ca class=\u0022krumo-name\u0022\u003E...\u003C\/a\u003E\n      (\u003Cem class=\u0022krumo-type\u0022\u003EArray, \u003Cstrong class=\u0022krumo-array-length\u0022\u003E12 elements\u003C\/strong\u003E\u003C\/em\u003E)\n\n\n      \n  \u003C\/div\u003E\n\n  \u003Cdiv class=\u0022krumo-nest\u0022 style=\u0022display:none;\u0022\u003E\n  \u003Cul class=\u0022krumo-node\u0022\u003E\n  \u003Cli class=\u0022krumo-child\u0022\u003E\n\n  \u003Cdiv class=\u0022krumo-element krumo-expand\u0022\n     onClick=\u0022krumo.toggle(this);\u0022    onMouseOver=\u0022krumo.over(this);\u0022\n    onMouseOut=\u0022krumo.out(this);\u0022\u003E\n\n            \u003Ca class=\u0022krumo-name\u0022\u003E11: require_once()\u003C\/a\u003E\n      (\u003Cem class=\u0022krumo-type\u0022\u003EArray, \u003Cstrong class=\u0022krumo-array-length\u0022\u003E2 elements\u003C\/strong\u003E\u003C\/em\u003E)\n\n\n      \n  \u003C\/div\u003E\n\n  \u003Cdiv class=\u0022krumo-nest\u0022 style=\u0022display:none;\u0022\u003E\n  \

more warnings that i get while i edit (i put them in here to report)

Notice: Undefined index: cols in getHtmlDomArray() (line 16763 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: cellspacingx in writeHTML() (line 17876 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: colid in writeHTML() (line 17940 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: table_colwidths in writeHTML() (line 17940 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: cellspacing in writeHTML() (line 17943 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: colid in writeHTML() (line 17945 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Warning: array_push() expects parameter 1 to be array, null given in array_push() (line 17950 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: cellspacing in writeHTML() (line 17969 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>
Notice: Undefined variable: cellspacingx in writeHTML() (line 18024 of /xxx/sites/all/libraries/tcpdf/tcpdf.php). =>

Assigned:Unassigned» killua99
Category:support» bug
Status:Active» Postponed

Changing status. I put this in postponed because with the others issues right know I have a lot of work to do.

And maybe this is solve with others patchs.

Status:Postponed» Active

i installed today your last dev version and now i get this warnings

Notice: Undefined variable: pdf_display en render() (línia 158 de /xxx/sites/all/modules/contrib/views_pdf/modules/views_view_field/views_view_field_handler_include_view.inc). =>
Notice: Undefined offset: 0 en render_grouping_sets() (línia 48 de /xxx/all/modules/contrib/views_pdf/views_pdf_plugin_style_unformatted.inc). =>

Status:Active» Closed (fixed)

if you get this notices, you can follow in https://drupal.org/node/2042927
I have put the libraries versions on documentation and close this issue, since it would be a duplicate.