Giter Club home page Giter Club logo

Comments (4)

nfourtythree avatar nfourtythree commented on August 30, 2024

Hi @dustinwalker

Sorry that you seem to be having issues. Have had this running on various versions of PHP and haven't spotted this issue.

Just for a little bit more info could you paste in the following on line 269 in the VCardService.php file:

var_dump($optionsString);
die();

And then let me know the output if possible. It might just give me a little more insight it to what is going on.

Thanks,
Nathaniel

from craft-vcard.

dustinwalker avatar dustinwalker commented on August 30, 2024

Thanks @nfourtythree for looking into this–really appreciate any help. I added the lines and it returned: string(32) "��+��@p��b�_z� ���J�u����i>��g'"

Linked is the full output with devMode set to true: https://gist.github.com/dustinwalker/bcaa436ae8ce8776671b01ce8fc235a6

And if helpful the dump from Craft's PHP info tab: https://gist.github.com/dustinwalker/8b0ee866242c1e83df794118d009d57b

I'll continue to see if I can find anything else that's different from local to production to find anything that may be a clue.

Thanks again.

from craft-vcard.

nfourtythree avatar nfourtythree commented on August 30, 2024

Hi @dustinwalker

Haven't been able to spot anything that really stands out. Is this happening for all vCard links or just one specific link?

What options are you passing to the variable?

It does seem to be one of those strange bugs, and remote debugging is always a little tricky.

What setup have you got locally? What version of PHP?

Sorry for all the questions just trying to help get to the bottom of this so you can get it all working and up and running!

from craft-vcard.

dustinwalker avatar dustinwalker commented on August 30, 2024

No problem – I realize how difficult this is.

It happens for all vCard links but now that you mentioned what options we're passing it does seem that I can make the vCard work stripping away some of them but nothing specifically seems to be the culprit–it's more the amount of options I am passing.

Currently I am passing:

{% set options = {
        firstName: entry.firstName,
        lastName: entry.lastName,
        company:  contactInfo.companyName,
        jobTitle: entry.peopleTitle,
        email: { address: entry.email, type: "TYPE=WORK" },
        url: { address: siteUrl, type: "TYPE=WORK"},
        phoneNumber: { number: entry.phone, type: "TYPE=WORK"},
        photo: thisPhoto,
        address: [{
            name:  contactInfo.companyName,
            extended: contactInfo.address2,
            street: contactInfo.address,
            city: contactInfo.city,
            region: contactInfo.state,
            zip: contactInfo.zip,
            country: "USA",
            type: "WORK;PARCEL;POSTAL"
        }]
    } %}

But if I pass just:

    {% set options = {
        firstName: entry.firstName,
        lastName: entry.lastName,
        company:  contactInfo.companyName,
        jobTitle: entry.peopleTitle,
        email: { address: entry.email, type: "TYPE=WORK" },
        url: { address: siteUrl, type: "TYPE=WORK"}
    } %}

It works. However just also works:

    {% set options = {
        firstName: entry.firstName,
        lastName: entry.lastName,
        phoneNumber: { number: entry.phone, type: "TYPE=WORK"},
        photo: thisPhoto
    } %}

As well as:

    {% set options = {
        firstName: entry.firstName,
        lastName: entry.lastName,
        address: [{
            name:  contactInfo.companyName,
            extended: contactInfo.address2,
            street: contactInfo.address,
            city: contactInfo.city,
            region: contactInfo.state,
            zip: contactInfo.zip,
            country: "USA",
            type: "WORK;PARCEL;POSTAL"
        }]
    } %}

So a single field doesn't seem to be the culprit.

I am using MAMP locally which is using PHP 5.5.26 vs 5.5.31 that the staging site is using. Skimming over the other settings, such as memory limits, I don't see anything that differs drastically. The MySQL API version is newer on the staging server 5.5.50 vs 5.0.11-dev.

I think I may have found a suitable solution for now using just Twig templates if this taking too much effort on your end but I am happy to continue attempting other things and sending more info if it could help for a future case.

from craft-vcard.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.