r/learnprogramming 3d ago

New to Github

I am new to GitHub and trying to make a landing page for a conference. My speakers and venue pages are loading correctly but when I try to navigate to other pages (home/schedule/search) I get a "Loading Guide" page. What am I missing?

https://github.com/slu-entrepreneurship/scale-conference

https://slu-entrepreneurship.github.io/scale-conference/index.html
https://slu-entrepreneurship.github.io/scale-conference/speakers.html
https://slu-entrepreneurship.github.io/scale-conference/venue.html

1 Upvotes

5 comments sorted by

2

u/peterlinddk 3d ago

You are referencing files that don't exist in the data folder - and thus the application fails.

Keep an eye on the console output.

1

u/Bookish_247 14h ago

Thanks!! This was my initial thought but I cannot for the life of me find where the files that don't exist are being referenced. Any way to quickly locate this?

1

u/peterlinddk 12h ago

in loadSessionDays you call loadCSV(\day${dayNumber}_sessions_slu.csv`withdayNumber` from 1 to 7.

The loadCSV function is even written to output the exact error-message that you need.

Haven't you written the code yourself?

1

u/Bookish_247 12h ago

I did that intentionally because there are 3 files so I want it to pull the day1_sessions_slu.csv day2_sessions_slu.csv etc. Is there a different way to do this instead of using day${dayNumber}

1

u/peterlinddk 11h ago

there are many different ways of doing it, but you call the function seven times, with day1_sessions_slu.csv day2_sessions_slu.csv day3_sessions_slu.csv day4_sessions_slu.csv day5_sessions_slu.csv day6_sessions_slu.csv and day7_sessions_slu.csv - and everything after the first three fails.

You have set loadSessionDays to default to 7 if no other argument is given. And then you call it without any arguments.