Support

Home Forums Event Espresso Premium Editing Ticket

Editing Ticket

Posted: December 3, 2013 at 4:29 am

Viewing 22 reply threads


Jaroslav Gort

December 3, 2013 at 4:29 am

Hi there,

I’m having issues with my ticket.
– As you can see I’m getting a error at the top
– I also want to edit the text “Print and bring this ticket with you to the event”
– Remove that blue/white icon next to the QR Code
– Make another seperation so I can add the logo again and the shortcuts like [fname] and such, that part is going to be cut off at the entrance of the event and be made badges. Or is there a better way to do this?

Please tell me which files I need to edit and where I can find them.

Greetings

http://events-vnab.nl/images-mailchimp/ticket.PNG

  • This topic was modified 10 years, 12 months ago by Jaroslav Gort.


Jaroslav Gort

December 3, 2013 at 4:31 am

Here’s the image


Dean

December 3, 2013 at 4:39 am

Hi,

Regarding the error, the PDF creator does not at this time support transparent images. Please save a version with a solid background and use that and that should resolve it.

We have a guide on creating custom tickets that will help you with your other queries – https://eventespresso.com/wiki/how-to-create-a-custom-ticket/


Jaroslav Gort

December 3, 2013 at 6:07 am

Thanks,

I have replaced the transparant logo in my website and the transparant logo in my ticket. But the error at the top remains unfortunatly.


Dean

December 3, 2013 at 6:27 am

Hi,

Have you tried with a jpg file?


Jaroslav Gort

December 3, 2013 at 7:33 am

Still no results..
http://events-vnab.nl/?ticket_launch=true&id=45&r_id=13-529dd713d0aec&html=true


Jaroslav Gort

December 4, 2013 at 2:34 am

No solutions?
And Why is this required?


Josh

  • Support Staff

December 4, 2013 at 8:08 am

Can you try renaming the image file so that it does not include an underscore? ( _ )


Jaroslav Gort

December 5, 2013 at 3:57 am

Unfortunatly nothing..
http://events-vnab.nl/?ticket_launch=true&id=47&r_id=17-52a05444880a0&html=true


Dean

December 5, 2013 at 4:15 am

This is very confusing, the only time I have seen this error is down to a transparent image.

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level and FTP details are appreciated.


Jaroslav Gort

December 5, 2013 at 4:40 am

Done.


Dean

December 5, 2013 at 6:14 am

Thanks, I sent you an email.


Dean

December 5, 2013 at 6:49 am

Hi,

OK I am unable to resolve this. I have raised a developer ticket to look into it to see if they can figure out if it is the plugin that needs tweaking or something server related.

We will get back to you about this.


Josh

  • Support Staff

December 5, 2013 at 7:53 am

Hi there,

I think it’s a server configuration issue. I downloaded the logo image from:

http://events-vnab.nl/wp-content/uploads/2013/12/vnabweblogo21.jpg

and added it to a test ticket on a testing server and I’m not seeing the warning. It may be that your server is configured in such a way that the file permissions set for the /uploads directory are not allowing the getimagesize function to access the files there. Can you try this:

You can make a small edit to the ticketing plugin’s functions.php file on line 196 and change the line that says:

$image_size = getimagesize($data->event->ticket_logo_url);

to

$image_size = @getimagesize($data->event->ticket_logo_url);

Please let us know if that makes the warning message go away.


Jaroslav Gort

December 13, 2013 at 2:56 am

Hi guys,

Apologies for my late reply.
I tried it and replaced the line of code but still no results:
http://events-vnab.nl/?ticket_launch=true&id=47&r_id=17-52a05444880a0&html=true

I still hope you guys can help.
Greetings.


Tony

  • Support Staff

December 13, 2013 at 3:14 am

Hi,

Can you try hard-coding the URL please.

Try both

$image_size = getimagesize(“http://events-vnab.nl/wp-content/uploads/2013/12/vnabweblogo21.jpg”);

and also then

$image_size = getimagesize(“http://www.events-vnab.nl/wp-content/uploads/2013/12/vnabweblogo21.jpg”);

This is to narrow it down some more.


Tony

  • Support Staff

December 13, 2013 at 3:15 am

Pasted the code here http://pastebin.com/8b5fKDsG

Forum editor altered the links.


Jaroslav Gort

December 13, 2013 at 6:42 am

Okay so i just tried added the line of code but when i tried to upload it with my FTP it said
“550 functions.php: Permission denied”

So i just deleted the entire folder, edited the code and re-uploaded it. What I found out that MY code, the one you guys gave me is overwritten somewhere. So either way, I’m never able to test the code you guys give me because somewhere (maybe in php) it gets overwritten.


Jaroslav Gort

December 16, 2013 at 1:43 am

Still nothing we can do?


Tony

  • Support Staff

December 16, 2013 at 2:39 am

What is the location of the file you uploaded?

Are there any files/folders in wp-content/uploads/espresso/gateways?


Jaroslav Gort

December 16, 2013 at 3:40 am

/domains/events-vnab.nl/public_html/wp-content/plugins/espresso-ticketing

And ../gateways is empty.


Tony

  • Support Staff

December 16, 2013 at 4:36 am

The first thing that stands out is

550 functions.php: Permission denied

In a nut shell, the FTP server you are connected to actively refused to overwrite that file due to insufficient permissions. The work around was to replace the entire folder which works.

The problem here is that your original error can be due to permissions or a server configuration stopping getimagesize() grabbing the image. (Hotlink protected based on the user agent for example)

Secondly, Event Espresso has no built in way to override that function within espresso-ticketing/functions.php so if the code is being overwritten it again could be server configuration (caching maybe?)

I used the URL’s for your images on a local test site and ran into no issues at all. I can create tickets with the logo using the URLs with no problems. I suspect this is a server config issue and you will need to contact your server administrator to look into it.

To show you an example I added a line to echo the variable containing the URL currently in use. Then altered that variable to match your logo url.

So my default ticket type http://d.pr/i/gSJS
Using both the hardcoded url’s I gave you http://d.pr/i/9lOz and http://d.pr/i/oI69

Code used to test http://d.pr/f/40PR (espresso-ticketing/functions.php)
(Currently set to use one of the hardcoded urls)

*This is not a solution as the logo will always use that hardcoded url for any ticket. Just an example to show the logo working.


Jaroslav Gort

December 16, 2013 at 5:04 am

I resolved the 550 issue, I deactivated the plugin and then deleted it within wordpress. After that I dragged the entire folder to my plugins again and now I’m able to edit anything the way I want it to.

new results: http://events-vnab.nl/?ticket_launch=true&id=46&r_id=17-529f469a43f48&html=true

So I used your code and still no fix, So i should just contact my server administrator now?


Tony

  • Support Staff

December 16, 2013 at 5:13 am

I resolved the 550 issue, I deactivated the plugin and then deleted it within wordpress. After that I dragged the entire folder to my plugins again and now I’m able to edit anything the way I want it to.

Although you’ve worked around the issue, the underlying cause will not have changed. You can see here for changing permissions

http://codex.wordpress.org/Changing_File_Permissions

If you are unsure, ask you administrator.

So I used your code and still no fix, So i should just contact my server administrator now?

Yes I would, provide them with as much information as you can. Show them you have tried different url’s etc.

Viewing 22 reply threads

The support post ‘Editing Ticket’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso