thanks for helping me find the source of the error-message.
It was as you suspected: I used "translate($xml->attribute)"
after finding the lines and adding the (string) part, the error goes away.
Btw. how would one call the use of (string) in order to change a
non-string-variable-value to a string-variable-value?
Afaik it's not a function-call because that would have the parentheses in
different places (something like string($xml->attribute) ).
In the part of the translator.php-file that was in the error-message, there is
yet another kind of syntx I've not encountered before and would like the name of
(in case I need to google it in future):
I guess it's all part of the PHP-code being object-orientated and if I'd had
learned that (yet) I'd know, but perhaps (or hopefully) I'm not the only one
without the right kind of learning background in this list, and someone else
might profit from my admission to being a programming newbie/luser.
Sometimes even the best internet-pages for using/learning web-programming (like
http://www.w3schools.com/ ) are not much help if one doesn't know the correct
terms ... ;-)
Am 23.10.2012 16:45 schrieb Demian Katz:
> Try adding
> at the top of the translate() function in Translator.php.
> This will show you exactly which value is causing the problem.
> My first guess is that the $phrase being sent in is not a string. Maybe it's
an XML object or something that PHP isn't sure how to use as an array index. If
that's the case, you may be able to fix it in your calling code through
typecasting... that is, change a call like:
> translate((string) $xml->attribute);
> Let me know if you still have questions!
> - Demian
>> -----Original Message-----
>> From: Katharina Wolkwitz [mailto:wolkwitz@...]
>> Sent: Tuesday, October 23, 2012 3:59 AM
>> To: vufind-tech@...
>> Subject: [VuFind-Tech] Isset-Error
>> Hi everyone,
>> in the holdings-tab for this title "Elektrotechnik für Dummies"
>> I'm getting the following error:
>> Warning: Illegal offset type in isset or empty in
>> /usr/local/vufind/web/sys/Translator.php on line 172 Bestellt:
>> Since I'm seeing this error for the first time and before the translation
>> without problems, I'm afraid that something I changed in either my version of
>> the AlephRestful.php or the holdings.tpl must have caused this error.
>> Afaik I've never been in /usr/local/vufind/web/sys/Translator.php before.
>> Can anybody help me?
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> Vufind-tech mailing list
Mit freundlichen Grüßen
Haldener Straße 182